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 » Community » Newbie corner » httpclient : problem with some permanently redirected pages
httpclient : problem with some permanently redirected pages [message #31752] Thu, 24 March 2011 15:34 Go to previous message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Hi,

Is it a bug ? The httpcli example doesn't work with this url :
http://www.worldcat.org/oclc/40350907?referer=xid


I suppose that it's because this is a redirected page, and the location is a relative address :
/title/tagalog-english-english-tagalog-dictionary-talatinigang-pilipino-inggles-inggles-pilipino/oclc/40350907?referer=xid


I tried with some others redirected pages, it's working fine and all have a complete location address, ie :
http://www.domain.tld/newpage.html


If it's not a bug, how can I do to get the new page ? For now, using this code
Httpclient c;
String url = http://www.worldcat.org/oclc/40350907?referer=xid;
c.URL(url);
String content = c.ExecuteRedirect();
puts("[error] " + Nvl(client.GetError(), "OK (no error)"));

I get an error
[error] gethostbyname(): Connection timed out

 
Read Message
Read Message
Read Message
Previous Topic: XML Parsing
Next Topic: Examples Error
Goto Forum:
  


Current Time: Sun May 05 20:21:59 CEST 2024

Total time taken to generate the page: 0.01351 seconds