Server Help

Non-Subspace Related Coding - how does a server send you redirect request through socket

Anonymous - Tue Sep 11, 2012 12:18 am
Post subject: how does a server send you redirect request through socket
I've been having this problem for a while. Lets say you get source of a page through recv(), if that URL that you requested redirects you to another URL. A web browser will just redirect you to a new page. But in c++ winsock it gives blank source. So how can i know the redirect link so i can get the source?


PS: MGB the guest captcha is annoying icon_sad.gif
SamHughes - Sun Apr 21, 2013 11:18 am
Post subject:
First of all, congratulations on posting on September 11. To answer your question, the answer is that the server uses a certain HTTP header to redirect the page. (Or it uses a meta http-equiv tag.)
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group