Re: proxy does not work with secure sites
- From: "Phadnis" <Phadnis@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Sep 2005 06:03:03 -0700
Hi,
Thks for ur reply...
But rediff and yahoo are not secure sites??
are they??
also plz can u tell when i try to get the response from the web server
coonected to port 80 i get this excpetion some times..
dim rbytes as integer
rBytes = IPsocket.Receive(RecvBytes, RecvBytes.Length, 0)
socket closed forcibly.. can u explain this .. plz..
Thks..
"Alexander Nickolov" wrote:
> In order to support HTTPS, your proxy _must_ handle
> the CONNECT request instead of forwarding it on to
> the target server. It must open a socket to the target server
> on port 443 (unless other port specified in CONNECT)
> and return 200 OK response (or failure, for example 404
> if it can't resolve the target address, 504 if it timed out
> connecting). After that, the proxy should simply forward
> all traffic in both directions without trying to interpret it
> (though you may want to validate the SSL wire packet
> envelope).
>
> --
> =====================================
> Alexander Nickolov
> Microsoft MVP [VC], MCSD
> email: agnickolov@xxxxxxxx
> MVP VC FAQ: http://www.mvps.org/vcfaq
> =====================================
>
> "Phadnis" <Phadnis@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:D052DD56-B573-4814-A44A-23E7A87CBDC8@xxxxxxxxxxxxxxxx
> > hi ..ALL
> > i have 2 questions....
> >
> > First is ::::::::::::::::::::::::::::
> > i have writen a proxy but it does not work with sites like rediff and
> > yahoo
> > ..
> > i thk the rediff server will see that my proxy is not a valid IE object n
> > is
> > not serving the request..
> > so how do i go bout codign this in vb.net..
> >
> > Second question is :::::::::::::::::::::::::::;;;;;;
> > i have a proxy whcih inturn connects to requested url and gets the data(
> > the soket say is ipsocket) .. this data is read fromt the socket(ipsocket)
> > and written bak to the browser which is the client socket ( clint socket
> > connects to the proxy which inturns connects to request uri with port 80).
> > the code snippet is ..( i have written only 4-5 lines which are imp so plz
> > have a luk at it)
> >
> > My prob is.. i am gettin an excpetions some times with ipsocket and
> > sometimes with the clietn socket ..saying
> > saying that remote host forcibly closed.. can any one suggest,..
> > CAN SOME ONE HELP ME OUT.. PLZ
> > rBytes = IPsocket.Receive(RecvBytes, RecvBytes.Length, 0)
> > While rBytes > 0
> > If clientSocket.Connected = True Then
> > clientSocket.Send(RecvBytes, RecvBytes.Length, 0)
> > End If
> > If IPsocket.Connected = True Then
> > rBytes = IPsocket.Receive(RecvBytes, RecvBytes.Length,
> > 0)
> > ' strRetPage = strRetPage +
> > ASCII.GetString(RecvBytes,
> > 0, rBytes)
> > End If
> > End While
> >
> >
> >
> >
> >
>
>
>
.
- Follow-Ups:
- Re: proxy does not work with secure sites
- From: Alexander Nickolov
- Re: proxy does not work with secure sites
- References:
- Re: proxy does not work with secure sites
- From: Alexander Nickolov
- Re: proxy does not work with secure sites
- Prev by Date: Re: Windows 2003 faxcomex api problem
- Next by Date: Re: proxy does not work with secure sites
- Previous by thread: Re: proxy does not work with secure sites
- Next by thread: Re: proxy does not work with secure sites
- Index(es):
Relevant Pages
|