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

Reply via email to