2 ms·
Yep, absolutely right. This is just running on my laptop so there's no other user, but a server-based solution should absolutely hit the API using something lik
by zrail 12y ago
Yep, absolutely right. This is just running on my laptop so there's no other user, but a server-based solution should absolutely hit the API using something like Faraday[1] or requests[2].
[1]: https://github.com/lostisland/faraday https://github.com/lostisland/faraday
[2]: http://docs.python-requests.org/en/latest/ http://docs.python-requests.org/en/latest/
- joosters 12y agoI think there's an even easier fix here; you can solve it by getting curl to read the form parameters from a file (I'm not 100% sure, the manpage seems to suggest that -F can take a file source, but it might just be referring to how to upload an entire file?)