Hello,
Do you mean Authentication to the proxy? or to any website using the
proxy..
There are authentication classes in the proxy project like
"AuthenticaionList.cs", AuthBase.cs, AuthUserPass.cs etc...have a look
if it works for you. otherwise you have to write your own class for
authentication and call it before the HTTPClient class.
Use IPAddress.Parse. ( or IPAddress.Equals)
Regards,
Sadeeq
> Hello,
>
[quoted text clipped - 72 lines]
> > > > >
> > > > > Thanks for your help!
Pro1712 - 20 Jul 2006 12:03 GMT
Hi,
What I want to do is this:
My browser makes a request to the Proxy. The Proxy authenticates to the
company's proxy and sends the request to the company's proxy. This
proxy connects to the destination site and gets the pages.
The class HttpClient tries to connect directly to the destination. This
of course fails.
So my problem is to authenticate to the company's proxy and forward the
request and then receive the answer and send it back to the browser.
I have no idea how to do this...
Thanks!
Sadiq schrieb:
> Hello,
> Do you mean Authentication to the proxy? or to any website using the
[quoted text clipped - 85 lines]
> > > > > >
> > > > > > Thanks for your help!
Sadiq - 24 Jul 2006 14:54 GMT
hi,
well you have to modify the code. You can write your own authentication
class using sockets that will write the authentication details to your
company proxy..(obviously that would be running on some network port,
so you need to send and recieve data on that port using your socket in
your authenticaion class).
Now when you recieve first request in HTTPClient Class then instead of
forwarding it to the remote host directly, first you call your
authentication class using whatever credintials you provide, that class
will write the credentials to your company proxy and recieves the
response, once you get the resposne then you need to simply forward
that captured HTTP request to your company proxy. Instead of the remote
host address you need to initilize your remotehost in HTTPClient class
to the IP Address and port of your company proxy...rest it will handle
itself.....
hope this helps..
> Hi,
>
[quoted text clipped - 102 lines]
> > > > > > >
> > > > > > > Thanks for your help!