Re: LSP HTTP redirecting



You have to simulate the connection.
In WSPSend you have access to the data that is being passed over the net,
that means all the HTTP traffic ( GET/POST/etc ) is vizible to you.

If you want to redirect the browser write proxy server.
If you want the browser to display HTML from the other server then requested
in the browser UI you have the following options:
- in the LSP open connection with the needed server and exchange traffic
with it, WSPReceive will return data from your server, however browser will
think that it is the server it requested.
To make browser think that there is no proxy, connect his socket to your
own ( internal, will reside in the LSP )
The chain will look like this Browser -> Socket -> lspSocket ->
otherLspSocket -> yourServer.
- create BHO ( browser helper object ) this approach is valid only for IE.

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"DS" <ikoonman@xxxxxxxxx> wrote in message
news:OZUDtVc%23FHA.3804@xxxxxxxxxxxxxxxxxxxxxxx
> Hi
>
> I have been reading a lot about postings regarding url redirecting in
> LSP's, and i was hoping someone can clear up something for me. I found
> there are a lot of people that has quite a number of people with knowledge
> on the topic.
>
> Like countless postings, i need to redirect a URL. I am looking at the
> HTTP header is WSPSend to see which page is requested. I suspect that
> WSPRecv is the wrong place as i am not really concerned with the HTTP
> response (like HTML code), but what is requested from the server (ie. HOST
> and GET/POST).
>
> Now this is the part where things become a bit unclear to me. I can change
> the URL in the HTTP header to point to any other server, but the socket is
> already connected to a specific server. (LSP connect order : WSPConnect ->
> WSPSend -> ...) Changing the URL change only causes the browser to stop
> responding. I assume it's because i am setting HOST (albeit IP or HOST) to
> an invalid address which does not resolve to an already connected server
> (IP), right?
>
> Can I just return an INVALID_SOCKET and redirect using a manual WSPConnect
> call and then posting my redirected URL? The only information available to
> do a WSPConnect is the actual IP (which was resolved from URL) prior to
> the (WSPSend) sending the actual HTTP header.
>
> TIA


.



Relevant Pages

  • Re: How to write something to a html textfield and send it?
    ... > No need for controlling any particular browser. ... I'm not familiar with HTTP user ... and building the request in your program. ... The server doesn't know anything about a textfield; ...
    (comp.programming)
  • Intercept and DECRYPT HTTP/S requests
    ... for dumping http and https connections. ... by viewing exactly what is passing between the browser and the ... the browser and the server, you can compare conversations that work vs. ... mail me at nntp AT dawes DOT za DOt net ...
    (comp.lang.java.programmer)
  • Re: HTTP ping pong
    ... The server responds with web page. ... Also, HTTP supports reusing a connection, so it may be that your browser opens at most three connections, and reuses them for all the page content. ... browser to request the next leg and wait for the response. ...
    (comp.lang.java.help)
  • Re: writing a proxy ..
    ... I redirect my browser to the local server and re-route the HTTP ... Socket orig; ...
    (comp.lang.java.programmer)
  • Re: LSP HTTP redirecting
    ... In WSPSend you have access to the data that is being passed over the net, ... If you want to redirect the browser write proxy server. ... To make browser think that there is no proxy, connect his socket to your own ...
    (microsoft.public.win32.programmer.networks)