Goodreads Developers discussion
questions
>
curl and oauth
date
newest »
newest »
I like to fire up the ruby console and mess with it, but it's not worth learning a new language for.
Matthew, I can confirm that curl can maintain a cookie based session. You may need to check out these cURL options: * CURLOPT_COOKIEJAR (set to cookie filename and it's location)
* CURLOPT_COOKIEFILE (set to cookie filename and it's location)
* CURLOPT_COOKIESESSION (if true new session for each new connection)
To web auth there are also useful options:
* CURLOPT_HTTPAUTH CURLAUTH_ANY
* CURLOPT_SSL_VERIFYPEER 0
* CURLOPT_HTTPPROXYTUNNEL
* CURLOPT_PROXY
* CURLOPT_POSTFIELDS




I would highly recommend just using a client library, and not using curl.