Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help handling HTTP Post

Status
Not open for further replies.

bvs

IS-IT--Management
Oct 8, 2003
5
US
I have a client that is trying to send us files and they'd like to do it over HTTPS using a standard POST.

I first tried using PERL CGI.pm, but this client is sending the actual file data in the post, and PERL CGI is expecting the call to come from an HTML form and come in name value pairs. Also, all of the PERL file upload scripts I can find examples of only accept a path to the file and then actually go into the computer that is making the POST and read the file off of that machines hard drive using read(). That method won't work in this case because the call is coming through several layers of proxy servers.

So basically I need a way (in PERL) to upload a file by accepting a post that contains file data and save that file to my server, not going out the originating machine and reading the file data from the hard drive.
 
I suspect you've probably misunderstood the file upload scripts. Server-side Perl scripts have no access to the hard drive of the client and will read the file data from the POST request.

The upload() function in CGI.pm should be what you're looking for, if the POST request is constructed correctly. How is the client creating the request?
 
the client is creating the request using a .net class.

I looked at the upload() function a PERL a little bit, but it didn't seem like it did what I needed... maybe I was looking a bad tutorial... I'll try to search on that function some more.

Any useful links?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top