Since data is sent as POST variables, they are "encoded" as var1=var1&var2=val2&... pairs. In order to include an & in a data value, you must URLencode it as %26
-Chad On Tue, May 26, 2009 at 12:25 AM, Abraham Williams <4bra...@gmail.com> wrote: > You can escape &s with i think "\" or maybe "/" > > On Mon, May 25, 2009 at 21:11, TjL <luo...@gmail.com> wrote: >> >> OK, so I'm doing something wrong here: >> >> curl -D - -s -u tj:SECKRET \ >> -d "text=BstTwt: ❥ @tj Her:"The lightbulbs are over the >> dryer" Me:"The rooster flies east at dawn" >> Her:"What?" Me: "Oh, I thought we were talking like >> spies" &user=tj" http://twitter.com/direct_messages/new.xml >> >> That will go through with no error, HOWEVER, what actually gets sent >> is truncated at the first & >> >> (The same thing happens if there's a & or ") >> >> Soooo... what am I doing wrong? >> >> Or, "How can I get the entire message to go through?" >> >> I can't change it back, because if I switch " into a " that will >> confuse this too. >> >> Thanks >> >> TjL > > > > -- > Abraham Williams | http://the.hackerconundrum.com > Hacker | http://abrah.am | http://twitter.com/abraham > Project | http://fireeagle.labs.poseurtech.com > This email is: [ ] blogable [x] ask first [ ] private. > Sent from San Francisco, California, United States