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 the OAuth sign stuff, as in this 
TTWitter component, http://www.lakraven.com/delphi-stuff/ttwitter/ ?

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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 -  wrote:

> 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="' +
>  URLEncode2(sign) +'"';
>
>
> On Sun, Feb 13, 2011 at 3:35 AM, RTT  wrote:
>
>> 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",
>>> oauth_signature="RjpaedDdvs6n9yX1TFI%2FNzrnbcQ%3D"
>>>
>> Are you sending these options in only one header line (the "Authorization"
>> one) , or multiple lines as this dump suggest?
>>
>> --
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
>>
>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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="' +
 URLEncode2(sign) +'"';


On Sun, Feb 13, 2011 at 3:35 AM, RTT  wrote:

> 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",
>> oauth_signature="RjpaedDdvs6n9yX1TFI%2FNzrnbcQ%3D"
>>
> Are you sending these options in only one header line (the "Authorization"
> one) , or multiple lines as this dump suggest?
>
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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",
oauth_signature="RjpaedDdvs6n9yX1TFI%2FNzrnbcQ%3D"
Are you sending these options in only one header line (the 
"Authorization" one) , or multiple lines as this dump suggest?

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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  wrote:

> 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 http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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 http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be