[twitter-dev] Re: Sending DMs via curl with extended characters?

2009-05-26 Thread shiplu

When you use curl in linux shell, use single quotation instead of
double quotation.


curl -D - -s -u tj:SECKRET \
-d 'text=BstTwt: #10085; @tj Her:quot;The lightbulbs are over the
dryerquot; Me:quot;The rooster flies east at dawnquot;
Her:quot;What?quot; Me: quot;Oh, I thought we were talking like
spiesquot; user=tj'  http://twitter.com/direct_messages/new.xml

If you use double quotation in linux use \ to escape shell meta character
If you are in windows use ^ to escape shell meta character

-- 
A K M Mokaddim
http://talk.cmyweb.net
http://twitter.com/shiplu
Stop Top Posting !!
বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল


[twitter-dev] Re: Sending DMs via curl with extended characters?

2009-05-25 Thread Chad Etzel

Since data is sent as POST variables, they are encoded as
var1=var1var2=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: #10085; @tj Her:quot;The lightbulbs are over the
 dryerquot; Me:quot;The rooster flies east at dawnquot;
 Her:quot;What?quot; Me: quot;Oh, I thought we were talking like
 spiesquot; 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 amp; or quot;)

 S... 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 quot; 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