From 8e87223195bba350f7fab9575a3ea3de85a49166 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 1 Oct 2004 06:36:11 +0000 Subject: - 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. --- tests/data/test166 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/data/test166') diff --git a/tests/data/test166 b/tests/data/test166 index 07a0675ef..9a9704b0e 100644 --- a/tests/data/test166 +++ b/tests/data/test166 @@ -37,12 +37,12 @@ User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6 Host: 127.0.0.1:%HTTPPORT Pragma: no-cache Accept: */* -Content-Length: 227 +Content-Length: 223 Expect: 100-continue Content-Type: multipart/form-data; boundary=----------------------------b0b3d6d23991 ------------------------------b0b3d6d23991 -Content-Disposition: form-data; name="name"; filename="log/fie ld 166" +Content-Disposition: form-data; name="name"; filename="fie ld 166" Content-Type: application/octet-stream data inside the file -- cgit v1.2.3