Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
how does a server send you redirect request through socket

 
Post new topic   Reply to topic Printable version
 View previous topic  Basic winsock trouble getting correct ... Post :: Post Catid's Biller + MingW - methods was n...  View next topic  
Author Message
guesty
Guest


Offline

PostPosted: Tue Sep 11, 2012 12:18 am    Post subject: how does a server send you redirect request through socket Reply to topic Reply with quote

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
Back to top
SamHughes
Server Help Squatter


Joined: Jun 30 2004
Posts: 248
Location: Greenwich
Offline

PostPosted: Sun Apr 21, 2013 11:18 am    Post subject: Reply to topic Reply with quote

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.)
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Non-Subspace Related Coding All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 85 page(s) served in previous 5 minutes.

phpBB Created this page in 0.053900 seconds : 27 queries executed (49.3%): GZIP compression disabled