LSP HTTP redirecting
- From: DS <ikoonman@xxxxxxxxx>
- Date: Mon, 05 Dec 2005 17:58:00 +0000
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 .
- Follow-Ups:
- Re: LSP HTTP redirecting
- From: Ajay Agrawal
- Re: LSP HTTP redirecting
- From: Vadym Stetsyak
- Re: LSP HTTP redirecting
- Prev by Date: Re: Wrapping TCP communications in HTTP
- Next by Date: Re: Connection close in HTTP server
- Previous by thread: Re: Use Win64 SDK now ?
- Next by thread: Re: LSP HTTP redirecting
- Index(es):
Relevant Pages
|
Loading