cURL / Mailing Lists / curl-users / Single Mail

curl-users

cURL request file upload

From: Reginald Baugh <reginald.baugh_at_gmail.com>
Date: Tue, 2 Aug 2011 10:46:11 -0400

Greetings;

I am attempting to upload a file to a client's server through cURL using an
HTTP request. The file indeed uploads to the server, however it seem some
server header info gets embedded within the file. *Need assistance in
removing the embedded headers in the file* (lines 1-3 in image below).

Upload Code:

E:\BSG\EXE\curl -k -b E:\BSG\SEND\CLAIMS\ALMPhy\cookie.txt -c
E:\BSG\SEND\CLAIMS\ALMPhy\cookie.txt --header "X-filename:
009872939_358.TXT" --header "X-cde_identification:X12_NCPDP_BATCH" --header
"X-checksum: FFFFFFFF" -F
myFile=@E:\BSG\SEND\CLAIMS\ALMPhy\009872939_358.TXT
https://www.alabama-uat.com/BatchUpload.aspx

File Received by Client server: First 3 lines are not intended and the
process embeds them.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-08-02