Goodreads Developers discussion

121 views
questions > curl and oauth

Comments Showing 1-5 of 5 (5 new)    post a comment »
dateUp arrow    newest »

message 1: by Michael (new)

Michael Economy (michaeleconomy) Can curl maintain a cookie based session?


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


message 2: by Jon (new)


message 3: by Michael (new)

Michael Economy (michaeleconomy) I like to fire up the ruby console and mess with it, but it's not worth learning a new language for.


message 4: by Imix (last edited Nov 09, 2013 02:56AM) (new)

Imix | 1 comments 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


message 5: by Robert (new)

Robert (lathanh) | 14 comments The Postman REST client Chrome extension can make playing with OAuth much easier.


back to top