tags:

views:

92

answers:

0

I think I have this narrowed down to something debuggable

This will not work, where I am just sending in 'paste[body]=<'

curl http://pastie.caboo.se/pastes/create -H 'Expect:' -F 'paste[parser]=plaintext' -F 'paste[body]=<' -F 'paste[authorization]=burger' -s -L -o /dev/null -w '%{url_effective}'

This will work, where I send in 'paste[body]= <'

curl http://pastie.caboo.se/pastes/create -H 'Expect:' -F 'paste[parser]=plaintext' -F 'paste[body]= <' -F 'paste[authorization]=burger' -s -L -o /dev/null -w '%{url_effective}'

So for some reason, I can not send curl data that starts with a < character, the > character is fine. But I am also going to be passing in a ton of other data, that may have single and double quotes in it, how do you get that to all go in as well?

If someone can tell me how to do something like this:

pasteboard=`pbaste`
curl http://pastie.caboo.se/pastes/create -H 'Expect:' -F 'paste[parser]=plaintext' -F 'paste[body]=$pasteboard' -F 'paste[authorization]=burger' -s -L -o /dev/null -w '%{url_effective}'

Where $pasteboard could have anything in it, starting with < or even haas " and ' as well, that would be wonderful.