I tryed your link with HttpTst program and it works. Here is the display in HttpTst:
Upper window: --- cute here --- Not using proxy cmd> GET /updates/test%20download.zip HTTP/1.1 cmd> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* cmd> Connection: Keep-Alive cmd> Accept-Language: en, fr cmd> User-Agent: Mozilla/3.0 (compatible) cmd> Host: www.superletter.com cmd> application/x-zip-compressed => test%20download.zip Location = http://www.superletter.com/updates/test%20download.zip URL = http://www.superletter.com/updates/test%20download.zip Document = test%20download.zip RequestDone, no error. Status =200 StatusCode = 200 hdr>HTTP/1.1 200 OK hdr>Content-Length: 20125 hdr>Content-Type: application/x-zip-compressed hdr>Content-Location: http://www.superletter.com/updates/test%20download.zip hdr>Last-Modified: Thu, 08 Jun 2006 21:24:35 GMT hdr>Accept-Ranges: bytes hdr>ETag: "179cd5f0418bc61:10e9" hdr>Server: Microsoft-IIS/6.0 hdr>X-Powered-By: ASP.NET hdr>Date: Fri, 09 Jun 2006 18:56:50 GMT --- cute here --- Lower window: --- cute here --- Content type is application/x-zip-compressed Document stored in 'test%20download.zip' Size=20125 --- cute here --- So please check your program. Pay attention to remove all ProcessMessages called from ICS events (and probably anywhere else). If you use it, you probably have something wrong somewhere. Calling¨ProcessMessages (and any other form of the message pump) will cause strange results with ICS. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be ----- Original Message ----- From: "Marc A. Hale" <[EMAIL PROTECTED]> To: "ICS support mailing" <[email protected]> Sent: Friday, June 09, 2006 4:23 PM Subject: Re: [twsocket] httpcli downloading zip files >i found a problwm with the link and fixed that but now i get error code 400 > everytime. > > if i take the same link http://www.superletter.com/updates/test > download.zip > and put it in the borwser it works fine. but run it through the ICS > httpcli > it get error code 400, if i run through my proxy i get 406 error. > > > ----- Original Message ----- > From: "Francois Piette" <[EMAIL PROTECTED]> > To: "ICS support mailing" <[email protected]> > Sent: Friday, June 09, 2006 9:44 AM > Subject: Re: [twsocket] httpcli downloading zip files > > >> The HTTP client component doesn't make any difference whatever the >> document >> type is. It is exactly the same processing for a HTML document or a ZIP >> file. >> >> It is likely that the server react differently when you get a simple HTML >> file and get a ZIP file. Maybe it is a server side script which deliver >> the >> zip file and this script may depends on cookie grabbed somewhere and sent >> along with the request, or the script use HTTP header lines sent by the >> browser to check for client type and the likes. >> >> So the sort out the problem, you have to use a sniffer (Such as Ethereal) >> or >> a spying proxy (such as SocketSpy) to analyse the successful request sent >> from a browser. You'll see what the browser send exactly (cookies and >> header >> lines included). Then you can change your request send with the HTTP >> component accordingly. >> >> BUT the first step is to use the HttpTst program delivered with ICS and >> try >> to download various zip files located on various public servers. If it >> doesn't work, then you may have a problem with your ICS installation. >> >> 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: "Marc A. Hale" <[EMAIL PROTECTED]> >> To: <[email protected]> >> Sent: Thursday, June 08, 2006 11:22 PM >> Subject: [twsocket] httpcli downloading zip files >> >> >>> i'm using the httpcli to download http files. if i do a get a a html >>> page >> is fine. >>> >>> if i try to download a file like a zip file it always comes down as 1 >>> byte >> and never downloads the file. the file extension is .slp which >>> is a zip file and works fine directly from browser. is they anything >>> different i have to do to download a file like a zip,txt, doc or >>> anyting. >>> >>> also where can i get a help file with on the options and descriptions >>> >>> >>> this is being used in a dll here is the code >>> >>> Http1 := THttpCli.Create(nil); >>> http1.Username := strpas(username); >>> http1.Password := strpas(password); >>> if enableproxy then >>> Begin >>> http1.Proxy := proxyserver; >>> http1.ProxyPort := proxyport; >>> http1.ProxyUsername := ProxyUser; >>> http1.ProxyPassword := Proxypass; >>> end; >>> try >>> http1.URL := StrPas(url); >>> http1.RcvdStream := TFileStream.Create(strpas(outfile), >> fmCreate); >>> http1.Get; >>> showmessage(http1.ContentType); >>> except >>> showmessage('ERROR >>> CODE:'+IntToStr(http1.StatusCode)+#13+'STATUS:'+http1.ReasonPhrase); >>> end; >>> http1.RcvdStream.Free; >>> http1.RcvdStream := nil; >>> http1.free; >>> >>> >>> -------------------------------------------------------------------------- >> ------ >>> Marc A. Hale >>> MJK Software Writers >>> [EMAIL PROTECTED] >>> -- >>> 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
