07-17-2012, 06:39 PM
Currently I am using a PuTTY to connect to a Linux server to run cURL
I thought perhaps IntPost would work, but Twitter replies: {"error":"Could not authenticate with OAuth.","request":"\/1\/statuses\/update.json"}
I'd like to figure out how to use QM to make the same post as using PuTTY to execute cURL command on the Linux box.
str header=
F
;Authorization: OAuth oauth_consumer_key="{oauth_consumer_key}", oauth_nonce="{oauth_nonce}", oauth_signature="{oauth_signature}", oauth_signature_method="{oauth_signature_method}", oauth_timestamp="{oauth_timestamp}", oauth_token="{oauth_token}", oauth_version="{oauth_version}"
str cURL=F"curl --request 'POST' 'https://api.twitter.com/1/statuses/update.json' --data 'status={status}' --header '{header}'"
cURL.setfile("c:\cURL.sh")
RunConsole2("c:\putty.exe -load Twitter -ssh [email protected] 22 -pw password -m c:\cURL.sh" 0 "" 0)
I thought perhaps IntPost would work, but Twitter replies: {"error":"Could not authenticate with OAuth.","request":"\/1\/statuses\/update.json"}
str header=
F
;Authorization: OAuth oauth_consumer_key="{oauth_consumer_key}", oauth_nonce="{oauth_nonce}", oauth_signature="{oauth_signature}", oauth_signature_method="{oauth_signature_method}", oauth_timestamp="{oauth_timestamp}", oauth_token="{oauth_token}", oauth_version="{oauth_version}"
IntPost("https://api.twitter.com/1/statuses/update.json" F"status={status}" str'responsepage header)
out responsepage
I'd like to figure out how to use QM to make the same post as using PuTTY to execute cURL command on the Linux box.