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 » HttpRequest : problem with multiple redirections ?
HttpRequest : problem with multiple redirections ? [message #43460] Thu, 07 August 2014 11:12 Go to previous message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Hi,

I want to get some data about books on various websites : ISBNdb, GoogleBooks, Worldcat... This works well with all of them, but not always with Amazon.fr : with it, using the same URL, I do not get always the same content! Sometimes, it is the one I get with Firefox, and sometimes it is another. This seems to be aleatory, and any content I get, there is never any error (HttpRequest::GetError() returns 0).

Trying with wget (I am using Linux), I see that with this URL, there is 3 redirections. Could it be the problem ? And if not, what could it be ?

My code is very simple : I'm supposed to know the URL for the book (if not, I make a search on the ISBN of the book, and I always find the right URL, even on Amazon.fr - if the book is known on the site, of course !)
String content;
HttpRequest http;
...
http.Url(url);
content = http.Execute();

An url showing this problem :
http://www.amazon.fr/14-Jean-Echenoz/dp/2707322571/ref=sr_1_1/278-1397759-3160153?ie=UTF8&qid=1372075436&sr=8-1&keywords=9782707322579


Any idea ?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FIX FindBest in Algo.h
Next Topic: HttpClient -> ssl
Goto Forum:
  


Current Time: Sun Apr 28 00:57:30 CEST 2024

Total time taken to generate the page: 0.05480 seconds