Re: [twsocket] Handling redirects
When this event is called, where can I get the new url? I need it to change the url I keep on file. Unfortunately the URL property does not get updated. thanks, Mike On 2/7/06, Francois Piette [EMAIL PROTECTED] wrote: Assuming you use THttpCli, there is a property called FollowRedirection. Set it to true. 1. Did you mean FollowRelocation? 2. Does it automatically then handle the redirection. Or will it trigger the OnLocationChange event where I need to get the new Destination to use? OnLocationChange is always triggered. If ou need to change the relocation the set FollowRelocation to FALSE and run a new request yourself with the url you want to relocate to. -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Handling redirects
Yes, that's correct. Thanks. PS: I will gladly pay a few dollars for a good help file :) Mike On 9/1/06, Francois Piette [EMAIL PROTECTED] wrote: It is in the location property if memory is stille alive. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Message - From: Mike Versteeg [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Friday, September 01, 2006 11:39 AM Subject: Re: [twsocket] Handling redirects When this event is called, where can I get the new url? I need it to change the url I keep on file. Unfortunately the URL property does not get updated. thanks, Mike On 2/7/06, Francois Piette [EMAIL PROTECTED] wrote: Assuming you use THttpCli, there is a property called FollowRedirection. Set it to true. 1. Did you mean FollowRelocation? 2. Does it automatically then handle the redirection. Or will it trigger the OnLocationChange event where I need to get the new Destination to use? OnLocationChange is always triggered. If ou need to change the relocation the set FollowRelocation to FALSE and run a new request yourself with the url you want to relocate to. -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] html code in downloaded file
Hi, I am trying to download a file using HttpCli and TFileStream, but the downloaded file has some html code inserted in front of the actual binary data (announcing the data in plain text). Is there an easier way to remove this than by examining and removing it? I notice IE saves the file without the html code.. Thanks, Mike -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] html code in downloaded file
No, it's in the stream alright. As I said, it's some html code. I studied it a bit closer and it's a redirect. I come from Indy and that handled redirects automatically (but I extremly dislike their blocking), so am now browsing ICS's help file (google :) to find out how to enable redirects in HttpCli. I assume that'll fix the problem. PS: if ever a help file is made available for ICS, I am willing to pay for it as it would safe me a lot of time. Mike On 6/19/06, Francois PIETTE [EMAIL PROTECTED] wrote: It is likely that you haven't cleared the stream used to receive data for a previous request. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Mike Versteeg [EMAIL PROTECTED] To: twsocket@elists.org Sent: Monday, June 19, 2006 11:37 AM Subject: [twsocket] html code in downloaded file Hi, I am trying to download a file using HttpCli and TFileStream, but the downloaded file has some html code inserted in front of the actual binary data (announcing the data in plain text). Is there an easier way to remove this than by examining and removing it? I notice IE saves the file without the html code.. Thanks, Mike -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] THttpCli ID
Learned something new, thanks! Mike On 1/9/06, Francois Piette [EMAIL PROTECTED] wrote: I heard servers can keep track of what software/browser accesses them. I use THttpCli to download files from servers, how can I add this ID so servers recognize my software? It is the THttpCli.Agent property. By default the value is 'Mozilla/4.0 (compatible; ICS)' You can change it to whatever you need, for example make the server think it has IE as client :-) Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] thttpcli unicode
Hi, I am evaluating ICS, specifically the component thttpcli and have the following problem: if I retrieve a web page with multibyte characters, I cannot seem to get the data in proper format. It seems like the Buffer that comes with HttpDocEnd() is a char *, not a WideString or something similar. Am I doing something wrong, or is this an omission in the component? My intention is to paste the site into an html editor I created, but ofcourse I need to keep all special characters that were on the (English) page. Thanks, Mike -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be