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:

NYC-based WebDNA programmers (2003) Passing info in [Addlineitem] (1997) Help! WebCat2 bug (1997) WebCat2b12 CGI Mac - [shownext] problem (1997) Navigator 4.0 & tables (1997) unable to launch acgi in WebCat (1997) Re:Emailer and encryption (1997) Fun with dates (1997) Show only certain items (2002) Looking for a Manual (1997) Banners (1997) How To get Some Help (2003) Roundup (2001) Ampersand (1997) WebCat2_Mac RETURNs in .db (1997) WebCat b13 CGI -shownext- (1997) DataBaseHelper Flawed (1997) syntax question, not in online refernce (1997) iTools and 3.0.8 (2000) UPS Shipping (1999)