Hi Hyper,
Thanks for ur quick reply.
actually yesteraday night we are able to success in curl command execution...
i modified the command like below
curl --silent --header "Authorization: OAuth oauth_nonce= 12343212,oauth_timestamp=1241514332,oauth_consumer_key=5ac627c078ed400cb6c30bc122a8d6fc,oauth_signature_method=HMAC-SHA1,oauth_version=1.0,oauth_signature=WN8oy0CwYjW3tVJEPXdQM7HH5RQ%3D" \
"http://api.myspace.com/request_token"
and we are able to get the oauth_token and oauth_secret_token.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
You suggested few points to us, but already we have done all those things like sorting oauth header before HMAC calculation and all.
But while doing it programatically we are getting problem. we are using QHttp module of QT.
please have a look at below code snippet..
http->setHost("api.myspace.com");
QHttpRequestHeader header("POST", "/request_token");
header.setValue("Host","http://api.myspace.com");
header.setContentType("application/x-www-form-urlencoded");
header.setValue("Authorization","OAuth oauth_nonce=12343212,oauth_timestamp=1241514332,oauth_consumer_key=5ac627c078ed400cb6c30bc122a8d6fc,oauth_signature_method=HMAC-SHA1,oauth_version=1.0,oauth_signature=WN8oy0CwYjW3tVJEPXdQM7HH5RQ");
http->request(header,array);
but we are getting 400 Bad request in response header.
can you please suggest where we are doing wrong!
are we need to add any more fields in the http request header? please suggest us!
Thanks in advance..
Regards,
Tieto