Re: [WebDNA] TCPConnect w/ user:pass

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102533
interpreted = N
texte = --000e0cd29ac2073ee104699ca914 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Dan, Checking the Twitter API it looks like you must use 'post' if you are trying to send an update: http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses update To check you are authenticating OK try this first, its working for me. - Tom [!] ------------------------------------ ### Connect to twitter and pull down status listing ### [/!][TCPConnect host=twitter.com][!] [/!][text]xmlresponse=[tcpsend skipheader=T]GET /statuses/public_timeline.xml HTTP/1.0[unurl]%0D%0A[/unurl][!] [/!]Authorization: Basic [encrypt method=Base64][user_id]:[user_pw][/encrypt][unurl]%0D%0A[/unurl][!] [/!][unurl]%0D%0A%0D%0A[/unurl][/tcpsend][/text][!] [/!][/tcpconnect][!] [/!][xmlresponse] --000e0cd29ac2073ee104699ca914 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dan,

Checking the Twitter API it looks like you must use= 'post' if you are trying to send an update:

=C2=A0=C2=A0http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-status= es update

To check you are authenticating OK try this first, its = working for me.

- Tom

[!]

------------------------------------
### = =C2=A0Connect to twitter and pull down status listing =C2=A0###
<= br>
[/!][TCPConnect host=3Dtwitter= .com][!]
[/!][text]xmlresponse=3D[tcpsend skipheader=3DT]GET /statuses/public_t= imeline.xml HTTP/1.0[unurl]%0D%0A[/unurl][!]
[/!]Authorization: B= asic [encrypt method=3DBase64][user_id]:[user_pw][/encrypt][unurl]%0D%0A[/u= nurl][!]
[/!][unurl]%0D%0A%0D%0A[/unurl][/tcpsend][/text][!]
[/!][/tc= pconnect][!]

[/!][xmlresponse]

--000e0cd29ac2073ee104699ca914-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] TCPConnect w/ user:pass ("Dan Strong" 2009)
  2. Re: [WebDNA] TCPConnect w/ user:pass (Tom Duke 2009)
  3. Re: [WebDNA] TCPConnect w/ user:pass ("Dan Strong" 2009)
  4. Re: [WebDNA] TCPConnect w/ user:pass (Tom Duke 2009)
  5. Re: [WebDNA] TCPConnect w/ user:pass ("Dan Strong" 2009)
  6. Re: [WebDNA] TCPConnect w/ user:pass (Stuart Tremain 2009)
  7. Re: [WebDNA] TCPConnect w/ user:pass (Stuart Tremain 2009)
  8. [WebDNA] TCPConnect w/ user:pass ("Dan Strong" 2009)
--000e0cd29ac2073ee104699ca914 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Dan, Checking the Twitter API it looks like you must use 'post' if you are trying to send an update: http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses update To check you are authenticating OK try this first, its working for me. - Tom [!] ------------------------------------ ### Connect to twitter and pull down status listing ### [/!][TCPConnect host=twitter.com][!] [/!][text]xmlresponse=[tcpsend skipheader=T]GET /statuses/public_timeline.xml HTTP/1.0[unurl]%0D%0A[/unurl][!] [/!]Authorization: Basic [encrypt method=Base64][user_id]:[user_pw][/encrypt][unurl]%0D%0A[/unurl][!] [/!][unurl]%0D%0A%0D%0A[/unurl][/tcpsend][/text][!] [/!][/tcpconnect][!] [/!][xmlresponse] --000e0cd29ac2073ee104699ca914 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dan,

Checking the Twitter API it looks like you must use= 'post' if you are trying to send an update:

=C2=A0=C2=A0http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-status= es update

To check you are authenticating OK try this first, its = working for me.

- Tom

[!]

------------------------------------
### = =C2=A0Connect to twitter and pull down status listing =C2=A0###
<= br>
[/!][TCPConnect host=3Dtwitter= .com][!]
[/!][text]xmlresponse=3D[tcpsend skipheader=3DT]GET /statuses/public_t= imeline.xml HTTP/1.0[unurl]%0D%0A[/unurl][!]
[/!]Authorization: B= asic [encrypt method=3DBase64][user_id]:[user_pw][/encrypt][unurl]%0D%0A[/u= nurl][!]
[/!][unurl]%0D%0A%0D%0A[/unurl][/tcpsend][/text][!]
[/!][/tc= pconnect][!]

[/!][xmlresponse]

--000e0cd29ac2073ee104699ca914-- Tom Duke

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

using showpage and showcart commands (1996) Re:[ShowIf] and empty fields (1997) Bug or syntax error on my part? (1997) Preventing code execution (2003) [URL] around a [sendmail] recipient? (2000) Setting up WebCatalog with Retail Pro data (1996) Date/Time format problems (1997) [WebDNA] Website almost dead? (2016) ListFiles (1998) Re:2nd WebCatalog2 Feature Request (1996) Problem with formatting dates stored in db (2003) www.smithmicro.com down? (2000) Merging databases (1997) [shownext] and descending order (1997) WebCat2b12 - nesting [tags] (1997) problems with 2 tags (1997) ooops...WebCatalog [FoundItems] Problem - LONG - (1997) Bug Report, maybe (1997) WCS Newbie question (1997) WebCatalog for WebStar V (2001)