Re: [twsocket] Modifying headers before send in httpcli fails

2011-02-17 Thread brian -
I got this working, httpcli is just working as expect, was nothing wrong with it. I will keep that extra variable for the headers anyway, it's a lot more convenient than the notify event. On Sun, Feb 13, 2011 at 3:54 AM, brian - hikarito...@gmail.com wrote: only 1 line SHeader :=

Re: [twsocket] Modifying headers before send in httpcli fails

2011-02-17 Thread RTT
On 17-02-2011 22:35, brian - wrote: I got this working, httpcli is just working as expect, was nothing wrong with it. I will keep that extra variable for the headers anyway, it's a lot more convenient than the notify event. Great, thanks for the followup. Are you using the Indy components, for

[twsocket] Modifying headers before send in httpcli fails

2011-02-12 Thread brian -
Hi, I've been working on Twitter's OAuth implementation, for which I'm using THttpCli. There are various ways to do this, one of which is adding some Auth data in the http headers and not including the parameters int he GET call. However, there's no option in httpcli to manually modify the

Re: [twsocket] Modifying headers before send in httpcli fails

2011-02-12 Thread RTT
On 12-02-2011 22:31, brian - wrote: there's no option in httpcli to manually modify the headers before a request You can do it from the OnBeforeHeaderSend event. -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] Modifying headers before send in httpcli fails

2011-02-12 Thread brian -
Oh yeah, dunno why I thought that was read only same effect anyway, the output headers are the same and still OAuth fails. Maybe something to do with the way httpcli sends the headers? On Sat, Feb 12, 2011 at 11:42 PM, RTT p...@sapo.pt wrote: On 12-02-2011 22:31, brian - wrote: there's no

Re: [twsocket] Modifying headers before send in httpcli fails

2011-02-12 Thread RTT
On 12-02-2011 22:31, brian - wrote: Authorization: OAuth oauth_callback=oob, realm=, oauth_nonce=5B2407849960FC2B4EC23007EA63E8ED, oauth_timestamp=1297549627, oauth_consumer_key=5BZYtiAzGvQTL0ZEhAn45w, oauth_signature_method=HMAC-SHA1, oauth_version=1.0,

Re: [twsocket] Modifying headers before send in httpcli fails

2011-02-12 Thread brian -
only 1 line SHeader := 'Authorization: OAuth oauth_callback=oob, realm=, oauth_nonce=' + nonce + ', oauth_timestamp=' + tstamp + ', oauth_consumer_key=' + ConsumerKey + ', oauth_signature_method=HMAC-SHA1, oauth_version=1.0, oauth_signature=' +