Re: [twsocket] File download

2005-12-09 Thread Me
ois Piette <[EMAIL PROTECTED]> Do: ICS support mailing Data: Fri, 9 Dec 2005 11:39:25 +0100 Temat: Re: [twsocket] File download > > Damn... its not working with .zip files... those are Headers sent by > > me, and i need headers recived in response :/ I know i wrote it > > wor

Re: [twsocket] File download

2005-12-09 Thread Francois Piette
> Damn... its not working with .zip files... those are Headers sent by > me, and i need headers recived in response :/ I know i wrote it > worked before but it wasnt... it only worked with .txt or .html > file... any further help? You should look at the header line is sent by the server in respons

Re: [twsocket] File download

2005-12-09 Thread Fastream Technologies
To: "ICS support mailing" Sent: Friday, December 09, 2005 12:29 PM Subject: Re: [twsocket] File download Damn... its not working with .zip files... those are Headers sent by me, and i need headers recived in response :/ I know i wrote it worked before but it wasnt... it only worked with

Re: [twsocket] File download

2005-12-09 Thread Me
AIL PROTECTED]> Do: ICS support mailing Data: Fri, 9 Dec 2005 11:21:12 +0200 Temat: Re: [twsocket] File download > Sorry that was for response header. Here is the code I use: > > void __fastcall httpServerClientClass:: HTTPClientBeforeHeaderSend(TOb

Re: [twsocket] File download

2005-12-09 Thread Me
I dont really know C++ (programming in Delphi) but thanx for your help "Fastream Technologies"! Managed to make it work in delphi based on your code. Thanks to your help, I discovered something interesting, and if anyone would have similar problem (with downloading files from forums keeping th

Re: [twsocket] File download

2005-12-09 Thread Fastream Technologies
ailing" Sent: Friday, December 09, 2005 9:51 AM Subject: Re: [twsocket] File download This one is always empty :( Wiadomość Oryginalna Od: Fastream Technologies <[EMAIL PROTECTED]> Do: ICS support mailing Data: Fri, 9 Dec 2005 09:25:18 +0200 Temat: Re: [twsocket] File down

Re: [twsocket] File download

2005-12-08 Thread Me
This one is always empty :( Wiadomość Oryginalna Od: Fastream Technologies <[EMAIL PROTECTED]> Do: ICS support mailing Data: Fri, 9 Dec 2005 09:25:18 +0200 Temat: Re: [twsocket] File download > Use Client->LastResponse. > > Regards, > > SZ > > -

Re: [twsocket] File download

2005-12-08 Thread Fastream Technologies
Use Client->LastResponse. Regards, SZ - Original Message - From: "Me" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Friday, December 09, 2005 8:37 AM Subject: Re: [twsocket] File download Ok. But... i really have no idea how do i get a header... in

Re: [twsocket] File download

2005-12-08 Thread Me
Technologies <[EMAIL PROTECTED]> Do: ICS support mailing Data: Thu, 8 Dec 2005 22:07:15 +0200 Temat: Re: [twsocket] File download > You need to parse the header on OnHeaderEnd. First store it in a class > variable in OnHeaderData. Notice that this event is called each time a > he

Re: [twsocket] File download

2005-12-08 Thread Fastream Technologies
ent: Thursday, December 08, 2005 8:42 PM Subject: Re: [twsocket] File download Wiadomość Oryginalna Od: Francois Piette <[EMAIL PROTECTED]> Do: ICS support mailing Data: Thu, 8 Dec 2005 10:36:25 +0100 Temat: Re: [twsocket] File download > > Hmm... How do i download a file and s

Re: [twsocket] File download

2005-12-08 Thread Me
oh... and one more... there can be a script (like in most forums) that is called download.php?id=xx where url gives nothing about filename to save. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our websi

Re: [twsocket] File download

2005-12-08 Thread Me
Wiadomość Oryginalna Od: Francois PIETTE <[EMAIL PROTECTED]> Do: ICS support mailing Data: Thu, 8 Dec 2005 20:31:48 +0100 Temat: Re: [twsocket] File download > >> Something like (just typing out of my head, not tested): > >> > >> HttpCli1.URL := '

Re: [twsocket] File download

2005-12-08 Thread Francois PIETTE
>> Something like (just typing out of my head, not tested): >> >> HttpCli1.URL := 'http://www.overbyte.be'; >> HttpCli1.RcvdStream := TFileStream.Create('overbyte.html', > fmCreate); >> HttpCli1.Get; >> HttpCli1.RcvdStream.Free; >> HttpCli1.RcvdStream := nil; >> > > Sounds cool but... if the file i

Re: [twsocket] File download

2005-12-08 Thread Me
Wiadomość Oryginalna Od: Francois Piette <[EMAIL PROTECTED]> Do: ICS support mailing Data: Thu, 8 Dec 2005 10:36:25 +0100 Temat: Re: [twsocket] File download > > Hmm... How do i download a file and save it on disk? Got the > > RcvdStream and... what? How do i

Re: [twsocket] File download

2005-12-08 Thread Francois Piette
> Hmm... How do i download a file and save it on disk? Got the > RcvdStream and... what? How do i save it to file? I thought that > stream.savetofile would work but there is no such a thing... Just assign a TFileStream to RcvdStream and you have a file. That's the beauty of TStream and derived cl

Re: [twsocket] File download

2005-12-07 Thread Ionut Muntean
Try to create a TFileStream and assign it to RcvdStream ... On Wed, Dec 07, 2005 at 09:39:54PM +0100, Me wrote: > Hmm... How do i download a file and save it on disk? Got the > RcvdStream and... what? How do i save it to file? I thought that > stream.savetofile would work but there is no such a

[twsocket] File download

2005-12-07 Thread Me
Hmm... How do i download a file and save it on disk? Got the RcvdStream and... what? How do i save it to file? I thought that stream.savetofile would work but there is no such a thing... Ann -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/ma