---- Wiadomość Oryginalna ----
Od: Francois PIETTE <[EMAIL PROTECTED]>
Do: ICS support mailing <twsocket@elists.org>
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 := '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 is being downloaded from forum... 
i
> > wouldlike to recive its name and save under the name given by
> > server... any idea how?
> 
> A HTTP server do no send filename. It even has no filename at all. 
In HTTP 
> speaking, you have documents and you have URL (that is the address 
of a 
> document). The best you can do is extract a document name from the 
end of an 
> URL but since there are "default document", the URL may lack it.
> 

Yes but it can be for example php script... and normal browser would 
recognize gzip or something but if ill take url it will still be .
php... 
> 

-- 
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

Reply via email to