Board index » delphi » HTTP file transfer with Indy 8.004B

HTTP file transfer with Indy 8.004B

Can someone lead me down the correct path as to how to implement a HTTP file
transfer using the TIdHTTPServer and TIdHTTP components?

Thanks!

Alan Olson

 

Re:HTTP file transfer with Indy 8.004B


aol...@wi.rr.com (Alan Olson) wrote in <8pthsr$i...@bornews.borland.com>:

Quote

>Can someone lead me down the correct path as to how to implement a HTTP
>file transfer using the TIdHTTPServer and TIdHTTP components?

Any particular reason you want to use HTTP to transfer the files? Firewall
perhaps? You could do it with a simple client/server setup using the
IdTCPClient and IdTCPServer. In any case, for HTTP transfers you have
basically two options:

1. PUT (which is not implemented in IdHTTP at least).
2. Use POST.

For the second option you would have to create a server side application
that accepts file-uploads. You would also have to implement server-side
apps in the IdHTTPServer and then use IdHTTP to POST from a stream to the
server. Quite a bit of work!

Re:HTTP file transfer with Indy 8.004B


aol...@wi.rr.com (Alan Olson) wrote in <8pthsr$i...@bornews.borland.com>:

Quote
>Can someone lead me down the correct path as to how to implement a HTTP file
>transfer using the TIdHTTPServer and TIdHTTP components?

Have you looked at the HTTP client and HTTP server demos?

--
Chad Z. Hower (Kudzu) - Church Hill, TN - Team Indy
      "Programming is an art form that fights back"
Forget the Y2K problem, Lets fix the W2K problem.
http://www.pbe.com/Kudzu/ - Free Delphi/CBuilder components and articles

Other Threads