curl-users
HTTP Post file
Date: Tue, 2 Aug 2011 12:14:49 -0400
Greetings;
I am attempting to upload a file to a server. However, the client wants the
request to use HTTP Post. I have tried to write in cURL, however the
transactions seem to embed some server response headers within the file
(separate issue). what is the proper way to send this HTTP Post using cURL?
Thank you!
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
POST /ALPortal/DesktopModules/iC_Portal_BatchTransfer/BatchUpload.aspx
HTTP/1.1
Cookie: ASP.NET_SessionId=fzfd2255332kqv45xrusd345;
X-filename: 271_X12_BATCH.251555.ELIGRSP13_271.txt
X-checksum: c9e1fc18
X-cde_identification: 271_X12_BATCH
User-Agent: Java/1.4.2_10
Host: 10.7.200.159
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Proxy-Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 2580
ISA*00* *00* *ZZ*752548221 *ZZ*DZPKNV
*070201*1744*U*00401*000000302*0*P*:~GS*HB*752548221*DZPKNV*20070201*174405*16*X*004010X092A1~ST*271*160
01~BHT*0022*11*0000000945*20070201*1744~HL*1**20*1~NM1*PR*2*EDS-ALABAMA
MEDICAID*****PI*752548221~HL*2*1*21*1~NM1*1P*1*BISHOPS PHARMAC*Y SCANT
CITY****SV*100003285~HL*3*2*22*0~TRN*2*945*9EDSPES000~TRN*1*070324429346*9EDSALAXIX*ELIGIBILITY
AUTHORIZATION~NM1*IL*1*WEST*VIOLA****MI*0004182024287~REF*NQ*5000005568624~REF*SY*418202428~REF*
-------------------------------------------------------------------
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