- Based on Fedor Karpelevitch's formpost path basename patch, file parts in
formposts no longer include the path part. If you _really_ want them, you must provide your preferred full file name with CURLFORM_FILENAME. Added detection for libgen.h and basename() to configure. My custom basename() replacement function for systems without it, might be a bit too naive... Updated 6 test cases to make them work with the stripped paths.
This commit is contained in:
@@ -40,7 +40,7 @@ User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 z
|
||||
Host: 127.0.0.1:%HTTPPORT
|
||||
Pragma: no-cache
|
||||
Accept: */*
|
||||
Content-Length: 412
|
||||
Content-Length: 408
|
||||
Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
|
||||
|
||||
------------------------------7c633d5c27ce
|
||||
@@ -52,7 +52,7 @@ Content-Disposition: form-data; name="tool"
|
||||
|
||||
curl
|
||||
------------------------------7c633d5c27ce
|
||||
Content-Disposition: form-data; name="file"; filename="log/test44.txt"
|
||||
Content-Disposition: form-data; name="file"; filename="test44.txt"
|
||||
Content-Type: text/plain
|
||||
|
||||
foo-
|
||||
|
||||
Reference in New Issue
Block a user