4 ms·
I recently hacked around a bug in a Python / API interaction by sending the request with Python system call to curl. I'm sure this was Not Right, but it did ge
by chernevik 15y ago
I recently hacked around a bug in a Python / API interaction by sending the request with Python system call to curl. I'm sure this was Not Right, but it did get'er done and on deadline. I suspect the API was somehow out of standard.
I figured out the problem 1) reading the Python code and 2) with what I'd learned about HTTP requests fooling around with curl scripts on the commandline.
No doubt a similar hack is available somehow in .NET / Windows. But I'm not sure that, outside a *nix environment, I'd have known about curl, or played with it enough to learn enough HTTP basics to figure out the problem in the first place.
- leoh 15y agohttp://code.google.com/p/httplib2/ http://code.google.com/p/httplib2/