Re: File Transfer from non-browser client using POST??

From: Date: Thu, 26 Apr 2001 22:25:43 +0000
Subject: Re: File Transfer from non-browser client using POST??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50518@lists.php.net to get a copy of this message
> If I wanted to use this utility to copy a file from a users (Windows) > workstation to my (Linux) webserver, how would I do this? The program on > the users workstation will create a file called "info.txt" and place it in > c:\wow. I want it to go to my server upload.mydomain.com. How do I get the > file c:\wow\info.txt from the user to my web server over https? > No solution here for the server side - I have a similar problem! But I DO know of a Win32 Borland library with an http component which supports POSTing of files. If you're working in Delphi, or C++ Builder, try http://www.nevrona.com/Indy/Download.html BUT - what about the server end, and PHP? I need to write a script which extracts the POSTed file content and store it on the server. (With a browser client I could upload from with <input type="file"> form elements and use the PHP upload functions, but using a browser at the client end is not an option here.) According to the w3c docs, POSTed content is sent in the "request entity body". Since the request has a header, it's logical that it can have a body too :-) but I don't see any PHP functionality for getting at it. PHP itself must be able to extract the POSTed data - it does so when saving a POSTed file to its temporary location - but this function don't seem to be exposed in the API... is it? Thanks for any wisdom! Nik

« previous php.general (#50518) next »