The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM


IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-29-2007
Registered User
 

Join Date: Oct 2005
Posts: 29
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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 ?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-29-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
  #3 (permalink)  
Old 11-29-2007
Registered User
 

Join Date: Oct 2005
Posts: 29
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Thanks, I am talking transfers from the client side.

Is there anywhere I can get more infor on 'curl' and 'wget' and their syntax - I am a newbie when it comes to HTTP !

thanks
Reply With Quote
  #4 (permalink)  
Old 11-29-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
The traditional approach is
Code:
man curl
or
Code:
man wget
if that fails then
Code:
google curl
or
Code:
google wget
.
Reply With Quote
  #5 (permalink)  
Old 11-29-2007
Registered User
 

Join Date: Oct 2005
Posts: 29
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Thanks.

Apart from the freeware client tools you have highlighted, does HTTP have any native transfer capability that you can simply specify via the URL in a Web Browser ?
Reply With Quote
  #6 (permalink)  
Old 11-29-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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?
Reply With Quote
  #7 (permalink)  
Old 11-30-2007
Registered User
 

Join Date: Oct 2005
Posts: 29
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Basically I want a user to be able to transfer a file to my server from their Web Browser
Reply With Quote
  #8 (permalink)  
Old 11-30-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Like some Web email interfaces allow you to upload attachments?
Reply With Quote
  #9 (permalink)  
Old 11-30-2007
Registered User
 

Join Date: Oct 2005
Posts: 29
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
I am interested in any means of doing this
Reply With Quote
  #10 (permalink)  
Old 11-30-2007
grial's Avatar
El UNIX es como un toro
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
  #11 (permalink)  
Old 11-30-2007
Registered User
 

Join Date: Jul 2007
Posts: 93
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101