curl-users
Post www-urlencoded data
Date: Fri, 22 Feb 2008 15:45:52 +0200
Hi
I am using curl curl 7.16.4. So there is no data --data-urlencode option for me.
I need to post some data of 100000+ chars.
I urlencode them by php and write to a file which looks like
prm1=sPDIwMDc7Pj47Pjs7Pjs%2BPjt&prm2=0PDtsPGk8MT47aTwzPjs%2BO&prm3=2w8dDxwPHA8bDxUZXh0Oz47bDzDllNZUyDEsMOHxLBOIEVOIE
etc. This file contains no newlines.
I use "curl options --data @postfile http://url" syntax from
commandline where the options are
-c cookie.txt
-H "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
-H "Accept-Language: en-us,en;q=0.7,tr;q=0.3"
-H "Accept-Encoding: gzip,deflate"
-H "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"
-H "Keep-Alive: 300" -H "Connection: keep-alive"
-A "Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1; FDM; .NET CLR
1.1.4322)"
-e "http://someurl"
But it seems that there is something wrong because the server
doesnt accept the request.
What do you suggest?
Received on 2008-02-22