curl-users
Re: curl command (post data question)
Date: Thu, 3 Sep 2009 08:56:18 -0600
At 16:14 +0200 9/3/09, Jagg Crossbone wrote:
>I tried it with the __VIEWSTATE field and also with the complete post data
>(I fetched with "live http headers" addon for firefox) but no chance to get
>"Darstellung:" = 5 and "Zeilen pro Seite:" = 100 :-(
>
>Here is for example the complete post data command I tried (long sorry):
>
>curl -d "ctl00_ctl00_ScriptManagerWP1_HiddenField=&__EVENTTARGET=&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE=%2FwEPDwUENTM4MQ9kFgJmD2QWAmYPZBYEAgEPZBYCZg8WAh4EaH
big SNIP by DPM
3%24Txt_Time=23%3A59&ctl00%24ctl00%24ctl22%24ctl00%24ctl03%24DD_Step=5&ctl00%24ctl00%24ctl22%24ctl00%24ctl03%24DD_Lines=100&ctl00%24ctl00%24ctl22%24ctl00%24ctl03%24IBtn_Refresh1.x=44&ctl00%24ctl00%24ctl22%24ctl00%24ctl03%24IBtn_Refresh1.y=8" "http://www.handelsblatt.com/finanzen/kursprofil/_p=389,wp1_symbol=DXU9.DTB,wp1_t=wp1_quoteshistory" > source.html
It's possible, depending on your OS, that you are exceeding some limit for the length of a command line. It certainly would exceed the limit in my first UNIX account, circa 1981.
I'm pretty sure the -d option can accept a file as an argument - something like @/tmp/path.
-- --> So are we going to celebrate the start of a new decade at the end of this year? Or do the tens start at in January 2011? <-- ------------------------------------------------------------------- List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2009-09-03