Tuesday, October 23, 2012

Curl Is Great

Trying some HTTP code I've written. A redirect works in Chrome, but not in Safari, and not in Firefox.

What gives?

The developer tools in Safari and Firefox are not up to the job. I have some potential posts on the webkit developer tools queued up, so let's leave it at that for now.

So, after a while, my thoughts turn to telnet. But before I get to try it, I get a better idea, as it would turn out: trying the 'curl' command. (The headline should perhaps read cURL, for the capitalization pedants.)

And this message is written to the terminal:
* no chunk, no close, no size. Assume close to signal end
Aha! Yes of course. This is what the words 'good feedback' can mean.

You just need to give curl the '-v' option.

No comments:

Post a Comment