Re: proxy does not work with secure sites

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



I suppose that means the other party closed the connection
ungracefully and you got a RST packet. I'm not familiar with
the syntax, I suppose that's VB.NET? Though that hardly
matters...

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Phadnis" <Phadnis@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4201CDB3-03A1-473B-8CB7-387CF4E17FF4@xxxxxxxxxxxxxxxx
> 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: call is blocked in recvfrom() and no further proceedings in Win CE
    ... > In windows CE, I'm able to send a request but I'm unable to receive it. ... Create another socket & bind with server IP address. ... >> My program has to send request to service through port 5070(in this port ...
    (microsoft.public.windowsce.embedded)
  • Re: proxy does not work with secure sites
    ... your proxy _must_ handle ... It must open a socket to the target server ... > not serving the request.. ...
    (microsoft.public.win32.programmer.networks)
  • Re: JSSE & SSL
    ... You need to use the HTTP CONNECT method to tell your proxy to connect you to the remote host, before you layer SSL on top of the socket you have created. ... int port; ... SSLSession session = sslSocket.getSession; ...
    (comp.lang.java.programmer)
  • Re: Socket Pools?
    ... Get the users to use a UDP Port to request a Connection, ... > I want users of this class to be able to request a socket and if one isn't ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: understanding reverse proxy using squid
    ... Actually a reverse proxy lies inbetween the Internet and the Web ... When a request from a client comes in, ... to the proxy server. ... the proxy server listens at port 80 and the web ...
    (comp.os.linux.misc)