cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

HTTP upload file and other fields

From: Sony AK Global Solutions <sakgsindonesia_at_gmail.com>
Date: Thu, 17 Jan 2008 22:06:49 +0700

Hello all cURL mania around the world,
I have a problem about curl. I have following html form.

<form action="saveit.php" method=post enctype="multipart/form-data">
<input type="text" name="txt_title" maxlength="50" size="70"/>
<input type="text" name="txt_type" maxlength="50" size="70"/>
<input type="file" name="pic" size="40"/>
<input type="submit" value="Submit" name="submit"/>
</form>

How to construct the curl for this kind of form? Since there is an upload
form combined with other input type. The upload file form can be blank
filename. I try many sample but always failed.

Thank you.

Sony AK

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-01-17