Curl Flashcards

1
Q

How do you request an xml file and format it using curl?

A

https://api.twitter.com/1/help/configuration.xml | xmllint –format -l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you request an json file and formt it using curl?

A

curl https://api.twitter.com/1/help/configuration.json | python -mjson.tool > twitter_config.json

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Where do you go to for the art of scripting HTTP requests using curl?

A

http://curl.haxx.se/docs/httpscripting.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly