Hi Jose, I think you need to handle the redirects..unless it's changed ;)
The result code will be either 301, 302 or 307 if it is redirect. There will be a header called "location" that contains the URL to go to. It can be relative to the current base URL, or it could be an entirely new URL. In this archive (http://members.optuszoo.com.au/benlees/NTLMAuthDemoApps_Synapse38b2.rar) there is "\THTTPSend Demo (HTTP only)\bhttpsendntlm.pas" which shows how to check for relative URLs and uses jsURLparser.pas (included) for combining relative URLs with the base site. You may be able to copy'n'adapt the code to your needs (search the file for 'redirect'). cheers, b Shopsland gmail wrote: > Hello, > > First I would like to thank Mr. Gebauer for this great library. > > We are testing Synapse and HttpGetText. We have succes with serveral > urls but with this one: > > http://www.news.com/8300-11128_3-54.xml > > We get the following http Error: > > FResultCode: 301 > FResultString: Moved Permanently > > It is a valid address from a well known site. It is a rss feed. If we > type the url in a browser we can see the rss feed without problems. No > 301 error. > > What are we doing wrong? Any clues will be appreciated. > > Thank you in advance! :-) > > Jose Luis - Barcelona - Spain > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > synalist-public mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/synalist-public > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
