| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
Re: curl script to post to pastie.org
From: Scott Haneda <talklists_at_newgeo.com>
Date: Sat, 13 Feb 2010 13:06:59 -0800
I never got anywhere on this one, and have been fiddling with it a while now, I thought I would give the list one last shot before I abandon the idea:
I have distilled down to a simple shell script:
#!/bin/bash
The curl command is all one line, you can get it cleanly out of here: http://pastie.org/808664
It works a lot of the time. Right now, I have this for curly.txt:
So there is a literal less than symbol in the file, returning to me the value for url_effective as: http://pastie.caboo.se/pastes/create (incorrect)
When it does work, if I were to put the contents of this email into a second file...
I get back this url: http://pastie.org/808674
Suggestions? Thanks in advance.
-- Scott * If you contact me off list replace talklists@ with scott@ * ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-02-13 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info