Proxy Authorization Webbrowser control

IProxy Authorization Webbrowser control

Page 1 of 1

1 Replies - 7095 Views - Last Post: 22 July 2008 - 12:53 AM Rate Topic: -----

#1 scottietrek  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 22-July 08

Proxy Authorization Webbrowser control

Posted 22 July 2008 - 12:41 AM

I have successfully set a new proxy using InternetSetOption(IntPtr.Zero and i can navigate to a page. Once on the page i try to click a like and i get the proxy a Authorization window. i have set the Authorization header prior to going to the page. but after clicking any link i get the window. is there a way to insure thae Authorization header stays with the webbrowser control any help here would be great i am banging my head against the wall. also the proxy server is squid if that helps.
Thank you ahead of time for any help.

Is This A Good Question/Topic? 0
  • +

Replies To: Proxy Authorization Webbrowser control

#2 scottietrek  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 22-July 08

Re: Proxy Authorization Webbrowser control

Posted 22 July 2008 - 12:53 AM

View Postscottietrek, on 22 Jul, 2008 - 12:41 AM, said:

I have successfully set a new proxy using InternetSetOption(IntPtr.Zero and i can navigate to a page. Once on the page i try to click a like and i get the proxy a Authorization window. i have set the Authorization header prior to going to the page. but after clicking any link i get the window. is there a way to insure thae Authorization header stays with the webbrowser control any help here would be great i am banging my head against the wall. also the proxy server is squid if that helps.
Thank you ahead of time for any help.

i am thinking it has something to do with the header it self here is what i am useing

		Dim h As String
		Dim cc() As Byte
		Dim aa As String
		userinfo = "username" + ":" + "password"
		cc = System.Text.ASCIIEncoding.ASCII.GetBytes(userinfo)
		aa = Convert.ToBase64String(cc)
Proxy-Authorization:Basic " + aa



** Edit ** :code:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1