curl-users
Re: curl command (post data question)
Date: Thu, 03 Sep 2009 16:14:10 +0200
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=%2FwEPDwUENTM4MQ9kFgJmD2QWAmYPZBYEAgEPZBYCZg8WAh4EaHJlZgUcaHR0cDovL3d3dy5oYW5kZWxzYmxhdHQuY29tL2QCDQ9kFgQCBQ9kFgJmD2QWAmYPZBYGZg9kFgQCAQ8QZGQWAWZkAgcPEGRkFgFmZAIBD2QWHgIBDxYCHglpbm5lcmh0bWwFEURBWCBGdXR1cmUgU2VwIDA5ZAIDDxYEHwEFM1R5cDombmJzcDtGdXR1cmUmbmJzcDt8Jm5ic3A7V0tOOiZuYnNwO0RFMDAwODQ2OTU5NB4HVmlzaWJsZWdkAgUPDxYCHghJbWFnZVVybAVIaHR0cDovL3dwMS52aGIuZGUvY2dpLWJpbi9pdncvV1AxL0RhdGFTb3VyY2UvRnV0dXJlL1dheVBvaW50T25lL3Rlc3QuaXZ3ZGQCBg8PFgIeBFRleHQFHDAzLjA5LjIwMDksJm5ic3A7MTM6MjM8YnIgLz5kZAIIDw8WBh8EBRo1LjM0MywwMCZuYnNwOyZldXJvOzxiciAvPh4IQ3NzQ2xhc3MFC1dwMVBvc2l0aXZlHgRfIVNCAgJkZAIKDw8WBh8EBTYrNDUsMDAmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsrMCw4NSZuYnNwOyU8YnIgLz4fBQULV3AxUG9zaXRpdmUfBgICZGQCDA8PFgIfAmhkZAIODw8WAh8DBURodHRwOi8vd3AxLnZoYi5kZS9jZ2ktYmluL2l2dy9XUDEvUmVzdWx0TW9kZS9IaXN0b3J5L0Z1dHVyZS90ZXN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00%24ctl22%24ctl00%24ctl03%24DD_Year=2009&ctl00%24ctl00%24ctl22%24ctl00%24ctl03%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
Quoting Daniel Stenberg :
> On Wed, 2 Sep 2009, Jagg Crossbone wrote:
>
> >
> http://www.handelsblatt.com/default.aspx?_p=389&wp1_symbol=DXU9.DTB&wp1_t=wp1_quoteshistory
>
> > curl -d
> >
> "ctl00%24ctl00%24ctl22%24ctl00%24ctl03%24DD_Step=5&ctl00%24ctl00%24ctl22%24ctl00%24ctl03%24DD_Lines=100"
>
> >
> "http://www.handelsblatt.com/default.aspx?_p=389&wp1_symbol=DXU9.DTB&wp1_t=wp1_quoteshistory"
>
> > > source.html
>
> > Do I miss something else in the -d parameter?!
>
> There are three more hidden fields in that form that you don't send. The
> __VIEWSTATE one is likely to be vital.
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> 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.html
>
------------------------------------------------------------------------------------
XMail.net Communications Center
-------------------------------------------------------------------
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.html
Received on 2009-09-03