M
murali
Guest
From Rollbase in Action, Chapter 6 var url = "http://my_server/login"; var params = {"loginName":"my_name", "password":"my_password"}; var headers = { ‘header_name1’ : ‘header_val1’, ‘header_name2’ : ‘header_val2’ } var resp = rbv_api.sendHttpPost(url, params, headers, false); // specify the last param chunked=false. Else the request is sent as chunked. Some servers do no accept chunked encoded requests. rbv_api.println(resp); From: Kobe_mamba [mailto:bounce-Kobe_mamba@community.progress.com] Sent: 08 June 2014 15:27 To: TU.Rollbase@community.progress.com Subject: [Technical Users - Rollbase] Problem with the sending of paramaters to rbv_api.sendhttpPost()..headers key value pairs problem... Problem with the sending of paramaters to rbv_api.sendhttpPost()..headers key value pairs problem... Thread created by Kobe_mamba Hi . How do i send the header information like Authorization: OAuth oauth_consumer_key="ydpaKblD5OKK3kW2TRuscej1P", oauth_nonce="7b4b93e333638f075579f7665bb3a3b2", oauth_signature="O9p9WxPW5cSfPmpam8RC8W5M0C0%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1402218095", oauth_token="581185549-BeGt5lT3dIFSHHD9vll4tYkazpPgpGaj1Fixl3ki", oauth_version="1.0" I tried sending it in header={"Authorization " : "......"} format ...but i am recieving errors...Should i be sending in key valu epair itself or does Oauth require some other format.... My code var url=" https://api.twitter.com/1.1/statuses/update.json "; var params={"status":"Hiiiiii"}; var headers={"Authorization":"OAuth oauth_consumer_key="ydpaKblD5OKK3kW2TRuscej1P", oauth_nonce="7b4b93e333638f075579f7665bb3a3b2", oauth_signature="O9p9WxPW5cSfPmpam8RC8W5M0C0%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1402218095", oauth_token="581185549-BeGt5lT3dIFSHHD9vll4tYkazpPgpGaj1Fixl3ki", oauth_version="1.0" "}; var body=rbv_api.sendHttpPost(url,params,headers); Plss help
Stop receiving emails on this subject. Flag this post as spam/abuse.
Continue reading...
Continue reading...