I'm new to cURL and I'm trying to do something reasonably simple. I want to login to a server and download data at regular intervals over a few hours.
First, I login to the server - which I've managed by posting the login values like so:
curl -v -c I:\ccookiejar.txt -d "user=me&password=whatever&Login=submit" http://www.website.com/login_p.asp -o I:\curltest.htm
second, I want to download a html page of data (I'm not worried about the code to do this repeatedly; at the moment, just once would be good) with I thought something like this including the cookies for the session to save me logging in every time.
curl -v -c I:\ccookiejar.txt "http://www.website.com/equities/quotes.asp?refRate=&levels=&Symbol=abc&type=2&v.x=33&v.y=16" -o I:\curltest2.htm
But this doesn't work as a separate command. It seems because cURL closes the connection?
When I include the url for the data I want to download in the same command as the login url it works ok and I get the two htm files output with the kind of data I expect.
Have I made a mistake in my second example? Is there some other way to save me having to login to the site hundreds of times to download my data using the first method?