Re: proxy does not work with secure sites

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
> >
> >
> >
> >
> >
>
>
>
.



Relevant Pages

  • Re: EOF, close(), shutdown(), on POSIX sockets
    ... I'm working on the core of a tcp proxy application. ... server to send that request to, forks a child, the child connects to the ... and drops the client and server socket into the core ... If I receive EOF when I read from A, I think I should do shutdown(B, ...
    (comp.os.linux.development.apps)
  • Re: proxy does not work with secure sites
    ... > coonected to port 80 i get this excpetion some times.. ... It must open a socket to the target server ... the proxy should simply forward ... >>> not serving the request.. ...
    (microsoft.public.win32.programmer.networks)
  • Making a socket connection via a proxy server
    ... In a nutshell - the question I'm asking is, how do I make a socket ... I am hacking "Tiny HTTP Proxy" by SUZUKI Hisao to make an http proxy ... It looks like the CONNECT and GET requests are just implemented using ...
    (comp.lang.python)
  • Sockets help
    ... a very simple socket function, client and server. ... through a proxy in between. ...
    (comp.lang.tcl)
  • Re: Splitting a full-duplex socket
    ... to circumvent this limitation you create a HTTP proxy which takes this ... create a normal socket on the proxy etc. ... But you kept saying you had no Full-duplex connection, ...
    (comp.lang.java.programmer)