cURL / Mailing Lists / curl-users / Single Mail

curl-users

Downloading a page (ssl/post/cookie)

From: David Burley <BurleyD_at_rct.dyndns.org>
Date: Tue, 20 Nov 2001 17:39:50 -0500

Hello,

I am trying to download a page. I run the following command for example:
curl -D cookies.txt
"https://ticketing.ticketmaster.com/cgi/purchasePage.asp?event_id=1600334194
F7674D&event_code=EMM1129&artistid=780815&majorcatid=10001&minorcatid=107&ar
timageid=." > test.txt

Then I view the outputted file for the data that will be posted, in
particular the field labeled "SIG". This is the only field that will change
with a particular event. I then want to post that data and get a ticket page
(or if there are no tickets) and output that to a file. I have tried various
different methods and can't seem to find one that works well. Perhaps
someone else will know some tricks. The following is an example command line
that I have tried to download the page, perhaps someone will note a problem
with it. Do note that the SIG field I modify accordingly and it must be
downloaded and used before a correct set of data to POST will be had.

curl -e "https://ticketing.ticketmaster.com/cgi/purchasePage.asp" -A
"Mozilla/6.0 (Win95; I)" -b cookies.txt -d
"ARTIMAGEID=img%2Fnoact.gif&ARTID=780815&ARTNAME=TRANS+SIBERIAN+ORCHESTRA&AR
TMAJORCAT=10001&ARTMINORCAT=107&ACTKEY=&VENUE_CITY=Dayton&VENUE_ZIP=45402&VE
NUE_STATE=OH&pageSet=sono&posttime=&MAPFILE=&config=&VENUENAME=Dayton+Memori
al+Hall&ACTNAME=TRANS+SIBERIAN+ORCHESTRA&FORMATDATE=Thursday%2C+November+29%
2C+2001++7%3A30PM&ONSALEDATE=Fri+Oct+19%2C+&PRICERANGE=&EVENTDATE=20011129&E
VENT_CODE=EMM1129&USER_ID=&EVENT_ID=1600334194F7674D&SIG=1001%3AUwlQ05ipoX-0
wH37GT6aGdCLAJ6uDNnJmOxmJD9YHvCpRdHUq2ANwQAA&EVENT_TITLE=DAYTON+MEMORIAL+AUD
ITORIUM%3Cbr%3EMIX+107.7+AND+LITE+99.9%3Cbr%3EPRESENTS%3Cbr%3ETRANS-SIBERIAN
+ORCHESTRA%3Cbr%3E*+*+*%3Cbr%3ETHU+NOV+29+2001+7%3A30PM%3Cbr%3E&SEARCHNAME=T
RANS_SIBERIAN_ORCHESTRA&MARKET=DAYTON&VAXNAME=CH6&PHONE=937%2F228-2323&VENUE
NUM=122&MAPEXIST=Y&STATE=OH&IDEVENT2=1600334194F7674D&MINORCATNUM=23&MAJORCA
TNAME=CONCERTS&AGREE=YES&referer=&allowVRML=NO&QTYA=2&T_LEVEL=&DELIVERY=PRIO
RITY%3AUPS+Next+Day+Air"
"https://ticketing.ticketmaster.com/cgi/newWebtix/webtix.dll?ReserveSeats" >
final.html

I would like to thank you for your help ahead of time.

Cheers,

David
Received on 2001-11-20