Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » [solved]How to disable "auto access redirect url " of the HttpRequest?
[solved]How to disable "auto access redirect url " of the HttpRequest? [message #44690] Tue, 26 May 2015 04:46 Go to next message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
index.php?t=getfile&id=4791&private=0


	HttpRequest req("https://p41-buy.itunes.apple.com/WebObjects/MZFinance.woa/wa /signupWizard");
	
	req.ContentType("multipart/form-data; boundary=DC6F1AC257D578C3E145646D500CAC46");
	req.UserAgent("iTunes/11.4 (Windows; Microsoft Windows 7 x64 Ultimate Edition Service Pack 1 (Build 7601)) AppleWebKit/536.30.1");
	req.Header("Cache-Control", "no-cache");
	req.Header("Accept-Language", "zh-cn, zh;q=0.5");
	req.Header("X-Apple-Tz", "28800");
	req.Header("X-Apple-Store-Front", "143465-19,17");
	req.Header("Connection", "Close");
	req.Header("X-Apple-ActionSignature", xSignature);
	req.Header("Date", GetDateHttp());
	req.Post(data);
	String result = req.Execute();	


see the picture, i just request the first url https://p41-buy.itunes.apple.com/WebObjects/MZFinance.woa/wa /signupWizard
but the HttpRequest auto request the other two url。

See the first url Response Details, the location is https://p12-buy.itunes.apple.com/WebObjects/MZFinance.woa/wa /signupWizard?Pod=12&PRH=12
i just want the HttpRequest did not auto request the other two url,so that i can request the location next!
  • Attachment: Image 2.png
    (Size: 78.73KB, Downloaded 1069 times)

[Updated on: Tue, 26 May 2015 14:00]

Report message to a moderator

Re: How to disable "auto access redirect url " of the HttpRequest? [message #44692 is a reply to message #44690] Tue, 26 May 2015 09:31 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi akabee,

Have a look at MaxRedirect. It should be enough to set it to 0.

Best regards,
Honza
Re: How to disable "auto access redirect url " of the HttpRequest? [message #44694 is a reply to message #44692] Tue, 26 May 2015 13:59 Go to previous message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
thank you dolik.rce!
solved!
Previous Topic: How to get path separator depended on platform?
Next Topic: [c++11] Problem with executing callback with Vector
Goto Forum:
  


Current Time: Fri Mar 29 16:41:14 CET 2024

Total time taken to generate the page: 0.01525 seconds