Re: [twsocket] THTTPCli false 404 pages
Try using an Agent property value the same as the one used by IE. 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: [EMAIL PROTECTED] To: TWSocket@elists.org Sent: Monday, June 12, 2006 3:37 AM Subject: [twsocket] THTTPCli false 404 pages Please offer suggestion for this circumstance -- If I use httpcli to get this page: http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItemitem=6286283929 everything is perfect. If I try to get non existent auction at same site with INTERNET EXPLORER for example: http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItemitem=notauctionnumber is the non existent auction URL. Then a fancy page appears saying item does not exist. WITH HTTPCLI, it gets a 404 error. I have guesses that the ISAPI.dll sends back the fancy -page to IE or that it is something else. Is there any way to get same page as IE? What am I doing wrong for this circumstance with nonexistent auction number? - This mail sent through IMP: http://horde.org/imp/ -- 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 false 404 pages
Hi ! Opera also gets the fancy page, so it's probably not IE-related. Cheers, Peter On Mon, 12 Jun 2006 03:37:34 +0200, [EMAIL PROTECTED] wrote: Please offer suggestion for this circumstance -- If I use httpcli to get this page: http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItemitem=6286283929 everything is perfect. If I try to get non existent auction at same site with INTERNET EXPLORER for example: http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItemitem=notauctionnumber is the non existent auction URL. Then a fancy page appears saying item does not exist. WITH HTTPCLI, it gets a 404 error. I have guesses that the ISAPI.dll sends back the fancy -page to IE or that it is something else. Is there any way to get same page as IE? What am I doing wrong for this circumstance with nonexistent auction number? - This mail sent through IMP: http://horde.org/imp/ -- FIGYELEM ! Ennek a levélnek a végén NINCS REKLÁM !!! észrevetted ? -- 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 false 404 pages
On 12 Jun 2006 at 9:24, Frans van Daalen wrote: the 404 is correct, IE will also get the 404. But ebay has changed the layout of the 404 error page to load some other pages like //snip from 404 page// cfg.sModuleUrl ='http://promo.ebay.com/ws/eBayISAPI.dll?GetPPModulesusecase=2' ; \ so you must read the 404 page and then execute the code in that page :-) You can read the pae? I am not sure if httpcli actually gets the vanilla 404 page from the server. An exception is thrown because it is a 404 status. I am using code similar to the example that comes with ICS: try { Http-Get(); } __except (TRUE) { // SetButtonState(TRUE) dm-Lines-Add(GET Failed !); dm-Lines-Add(StatusCode = + IntToStr(Http-StatusCode)); dm-Lines-Add(ReasonPhrase = + Http-ReasonPhrase); // // //the 404 status sends the program flow here // // // // } I am not sure if httpcli is getting the server's 404 template page or not. I guess I'll try to see what the document is holding. Thanks I mention ed IE but really I mean browser -- system browser. - This mail sent through IMP: http://horde.org/imp/ -- 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 false 404 pages
You can read the pae? I found that yes httpcli still gets the page html, though the 404 status threw the ecpetion below. Thanks for all your help on sorting it out. I am not sure if httpcli actually gets the vanilla 404 page from the server. An exception is thrown because it is a 404 status. I am using code similar to the example that comes with ICS: try { Http-Get(); } __except (TRUE) { // SetButtonState(TRUE) dm-Lines-Add(GET Failed !); dm-Lines-Add(StatusCode = + IntToStr(Http-StatusCode)); dm-Lines-Add(ReasonPhrase = + Http-ReasonPhrase); // // //the 404 status sends the program flow here // // // // } I am not sure if httpcli is getting the server's 404 template page or not. I guess I'll try to see what the document is holding. Thanks I mention ed IE but really I mean browser -- system browser. - This mail sent through IMP: http://horde.org/imp/ - This mail sent through IMP: http://horde.org/imp/ -- 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 false 404 pages
Please offer suggestion for this circumstance -- If I use httpcli to get this page: http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItemitem=6286283929 everything is perfect. If I try to get non existent auction at same site with INTERNET EXPLORER for example: http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItemitem=notauctionnumber is the non existent auction URL. Then a fancy page appears saying item does not exist. WITH HTTPCLI, it gets a 404 error. I have guesses that the ISAPI.dll sends back the fancy -page to IE or that it is something else. Is there any way to get same page as IE? What am I doing wrong for this circumstance with nonexistent auction number? - This mail sent through IMP: http://horde.org/imp/ -- 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