Posted By

eugegim on 11/25/08


Tagged

curl textmate examples


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jamesming


Curl Examples


 / Published in: Other
 

  1. Curl Examples
  2. # with basic auth
  3. curl -v -X GET --basic -u username:password "http://www.domainname.com"
  4.  
  5. # with cookie support
  6. # -b and -c allow cookies to be written to a file and then presented on next request
  7. # -L allows for following, ie if a 302 is sent, this makes another request to address in the redirect
  8. curl -v -X GET --basic -u username:password "http://www.domainname.com" -b cookies.txt -c cookies.txt -L

Report this snippet  

You need to login to post a comment.