[c#]Redirecting web page by just using sockets and tcp?
is there such a way to do this? of course not using httpwebresponse
**p.s. i'm doing a proxy server applicatio开发者_StackOverflow中文版n so once a user is not authorized to use my proxy, he'll be redirected to a webpage like " you're not authorized " or such
The concept of a redirect is part of HTTP. If your proxy server does not understand HTTP then it needs to establish some other communication protocol with the clients it is serving. If it does understand HTTP, then it needs to issue a 302 or 303 response along with the new url to the client as defined in HTTP.
精彩评论