curl-users
[ curl-Bugs-554747 ] multipart/form-data not completely send
Date: Fri, 10 May 2002 19:59:36 -0700
Bugs item #554747, was opened at 2002-05-10 19:59
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=554747&group_id=976
Category: debug/info output
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: multipart/form-data not completely send
Initial Comment:
Hi i'm using curl 7.9.6 and libcurl 7.9.6
with php 4.1.2 compiled as follows (for php)
./configure' '--with-mysql' '--enable-track-vars' '--
enable-bcmath' '--enable-ftp' '--with-zlib-dir' '--
with-mcrypt' '--with-mhash' '--with-curl' '--with-
apxs=/www/bin/apxs'
if i try this script :
$values = array( "country"=>"32",
"uSend"=>"1",
"msg"=>$msg );
$ch = curl_init();
curl_setopt($ch, CURLOPT_PROXY, "someproxy:8080");
curl_setopt($ch,
CURLOPT_URL, "http://mytestsite/view.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0
(compatible; MSIE 5.0; Windows 98; DigExt)");
curl_setopt($ch, CURLOPT_COOKIE, $cookie1);
curl_setopt($ch, CURLOPT_COOKIE, $cookie2);
curl_setopt($ch, CURLOPT_COOKIE, $cookie1);
curl_setopt($ch, CURLOPT_COOKIE, $cookie2);
curl_setopt($ch, CURLOPT_POSTFIELDS, $values);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_NOPROGRESS, 0);
curl_setopt($ch, CURLOPT_NOBODY, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
$result = curl_exec ($ch); // execute the curl
command
curl_close ($ch);
only country (the first element of the array) will be
posted as seen in a tcpdump listing.
also my server headers show a Transfer-Encoding:
chunked but I don't know enough of server headers if
that's a bug or not ... I know that if you do a post
to a https site the same problem arises (altough)
that's a little bit more difficult to check with a
network sniffing proggie ...
Greetz
Helder De Pauw
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=554747&group_id=976
Received on 2002-05-11