![]() |
|
|
|
|
|||||||
| IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| file transfer using Ftp | sudhi | Shell Programming and Scripting | 1 | 05-25-2008 08:14 PM |
| Transfer the file | manas_ranjan | UNIX for Dummies Questions & Answers | 2 | 07-27-2007 06:33 AM |
| file transfer | bkan77 | Shell Programming and Scripting | 4 | 07-27-2007 02:55 AM |
| http(port 80) configuration inet file | vikasdeshmukh | Linux | 1 | 06-08-2007 01:14 AM |
| transfer of specific file content to another file | mem101 | Shell Programming and Scripting | 1 | 10-18-2005 11:01 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
File transfer using HTTP
I have Apache running on a Solaris server. Does anyone know how I go about using HTTP for a file transfer ( or I guess more properly termed in HTTP as a document transfer ) ? I have a requirement that restricts my file transfer options to HTTP only !
Is there any changes I need to make to the Apache Config ? What do I add to a URL to do a file transfer ? Can I get the tranfer to acknowlege success / failure ? |
| Forum Sponsor | ||
|
|
|
|||
|
Are you talking about from the client or server side?
From the client side you could use "curl" or "wget". From the server side, as long as you can view files, you can download them, as that is what a client has to do inorder to view them. |
|
|||
|
There are content type flags you can set that cause browsers to download a file rather than display content, eg browses generally download .tar, .tgz, .exe, etc but display htm, html.
Do you want this to be something somebody has to run a browser to do or something they run a script to achieve? |
|
||||
|
If you are talking about uploading files to your Apache server, there are several options. Perhaps, the easiest, is a little php application. To achieve this you would have to add php support to your Apache and write some code. A little Google search pointed me to, for instance:
PHP File Upload Which may meet your needs. Other option is to configure mod_dav (DAV extensions to HTTP) on your apache. Have a look at: mod_dav: a DAV module for Apache I personally prefer PHP, though both systems could be potentially dangerous... Regards. |
|
|||
|
does HTTP have any native transfer capability that you can simply specify via the URL in a Web Browser ?
Unless it's blocked, the following should work. ftp://username@host unless you include username, anonymous user is assumed. If using other than the default port #21: use username@host: port Note there's no space between the colon and port, I put space there so I didn't get a smily. Last edited by denn; 11-30-2007 at 08:18 AM. |
|||
| Google UNIX.COM |