On Tue, Mar 28, 2006 at 01:06:24PM -0400, Newman Hardy wrote:
> I am trying to use lftp to upload a file to the following php script.
...
> I am using the following lftp script
> 
> debug 9
> set http:put-method POST
> set http:post-content-type multipart/form-data
> put test.txt -o "https://www.somesite.com/uploader.php";

You cannot upload files like this. The problem is that lftp cannot
create multipart/form-data content, you have to prepare it beforehand
in a file, then send that prepared file in POST request. See RFC2388
for how to format the request data.

-- 
   Alexander..

Reply via email to