Re: [WebDNA] TCPConnect w/ user:pass

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102535
interpreted = N
texte = --000e0cd341005152420469a5bd84 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Dan, Hmmmm... you tell the truth. I obviously didn't read the api docs closely ;-) I have however now tested it against an api call that requires authentication, and it does seem to work (code below). Just one thought - I'm pretty sure twitter expects UTF-8 encoding. Is it possible that your template that makes the call is using a different character set and maybe the username or password contains a character that is being encoded incorrectly? - Tom [!] ------------------------------------ ### Connect to twitter and pull down user's followers ### [/!][TCPConnect host=twitter.com][!] [/!][text]xmlresponse=[tcpsend skipheader=T]GET /statuses/followers.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] --000e0cd341005152420469a5bd84 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dan,

Hmmmm... =C2=A0you tell the truth. =C2=A0I obviousl= y didn't read the api docs closely ;-) =C2=A0I have however now tested = it against an api call that requires authentication, and it does seem to wo= rk (code below).

Just one thought - I'm pretty sure twitter expects = UTF-8 encoding. =C2=A0Is it possible that your template that makes the call= is using a different character set and maybe the username or password cont= ains a character that is being encoded incorrectly?

- Tom





[!]<= /div>

----------= --------------------------
### =C2=A0Connect to twitter and pull down user's followers =C2=A0 ##= #

[/!][TCPConnect host=3Dtwitter.com][!]
[/!][text]xmlresponse= =3D[tcpsend skipheader=3DT]GET /statuses/followers.xml HTTP/1.0[unurl]%0D%0= A[/unurl][!]
[/!]Authorization: Basic [encrypt method=3DBase64][user_id]:[user_pw][= /encrypt][unurl]%0D%0A[/unurl][!]
[/!][unurl]%0D%0A%0D%0A[/unurl][/tcpsend][/text][!]
[/!][/tc= pconnect][!]

[/!][xmlresponse]

--000e0cd341005152420469a5bd84-- 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)
--000e0cd341005152420469a5bd84 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Dan, Hmmmm... you tell the truth. I obviously didn't read the api docs closely ;-) I have however now tested it against an api call that requires authentication, and it does seem to work (code below). Just one thought - I'm pretty sure twitter expects UTF-8 encoding. Is it possible that your template that makes the call is using a different character set and maybe the username or password contains a character that is being encoded incorrectly? - Tom [!] ------------------------------------ ### Connect to twitter and pull down user's followers ### [/!][TCPConnect host=twitter.com][!] [/!][text]xmlresponse=[tcpsend skipheader=T]GET /statuses/followers.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] --000e0cd341005152420469a5bd84 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dan,

Hmmmm... =C2=A0you tell the truth. =C2=A0I obviousl= y didn't read the api docs closely ;-) =C2=A0I have however now tested = it against an api call that requires authentication, and it does seem to wo= rk (code below).

Just one thought - I'm pretty sure twitter expects = UTF-8 encoding. =C2=A0Is it possible that your template that makes the call= is using a different character set and maybe the username or password cont= ains a character that is being encoded incorrectly?

- Tom





[!]<= /div>

----------= --------------------------
### =C2=A0Connect to twitter and pull down user's followers =C2=A0 ##= #

[/!][TCPConnect host=3Dtwitter.com][!]
[/!][text]xmlresponse= =3D[tcpsend skipheader=3DT]GET /statuses/followers.xml HTTP/1.0[unurl]%0D%0= A[/unurl][!]
[/!]Authorization: Basic [encrypt method=3DBase64][user_id]:[user_pw][= /encrypt][unurl]%0D%0A[/unurl][!]
[/!][unurl]%0D%0A%0D%0A[/unurl][/tcpsend][/text][!]
[/!][/tc= pconnect][!]

[/!][xmlresponse]

--000e0cd341005152420469a5bd84-- 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:

OR-searching (2000) [WebDNA] Installing Windows CICADA under IIS7/2008 Server Enterprise (2009) WebCat editing, SiteGuard & SiteEdit (1997) Webstar 1.3.1 PPC (1997) show if date < expiry date (2002) Include a big block of text (1997) FW: Html mails and Outlook Win 2000 (2001) NT beta ReadMe missing (b12-b15) (1997) Trouble with formula.db (1997) OSX (2002) problems with 2 tags shakur (1997) Setting up shop (1997) Configuring E-mail (1997) More Applescript (1997) Email within tmpl ? (1997) WebDNA for Dummies (2004) setting taxable to true (1997) Math, Multiple Equasions and Show/Hide (1998) group searching problem (2002) Help!!!! (1997)