Re: [WebDNA] TCPConnect w/ user:pass

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102536
interpreted = N
texte = UTF made no diff... and now that I think about it it shouldn't, since the= UTF declaration happens=20 client-side *after* the [TCPConnect] fires server-side. [shell]curl[/shel= l] seems like the way to=20 go here for me... -Dan On Mon, 11 May 2009 17:47:53 +0100 Tom Duke wrote: > Dan, > Hmmmm... you tell the truth. I obviously didn't read the api docs clo= sely > ;-) I have however now tested it against an api call that requires > authentication, and it does seem to work (code below). >=20 > 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 t= hat > is being encoded incorrectly? >=20 > - Tom >=20 >=20 >=20 >=20 >=20 > [!] >=20 > ------------------------------------ > ### Connect to twitter and pull down user's followers ### >=20 > [/!][TCPConnect host=3Dtwitter.com][!] > [/!][text]xmlresponse=3D[tcpsend skipheader=3DT]GET /statuses/followers= .xml > HTTP/1.0[unurl]%0D%0A[/unurl][!] > [/!]Authorization: Basic [encrypt > method=3DBase64][user_id]:[user_pw][/encrypt][unurl]%0D%0A[/unurl][!] > [/!][unurl]%0D%0A%0D%0A[/unurl][/tcpsend][/text][!] > [/!][/tcpconnect][!] >=20 > [/!][xmlresponse] 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)
UTF made no diff... and now that I think about it it shouldn't, since the= UTF declaration happens=20 client-side *after* the [tcpconnect] fires server-side. [shell]curl[/shel= l] seems like the way to=20 go here for me... -Dan On Mon, 11 May 2009 17:47:53 +0100 Tom Duke wrote: > Dan, > Hmmmm... you tell the truth. I obviously didn't read the api docs clo= sely > ;-) I have however now tested it against an api call that requires > authentication, and it does seem to work (code below). >=20 > 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 t= hat > is being encoded incorrectly? >=20 > - Tom >=20 >=20 >=20 >=20 >=20 > [!] >=20 > ------------------------------------ > ### Connect to twitter and pull down user's followers ### >=20 > [/!][TCPConnect host=3Dtwitter.com][!] > [/!][text]xmlresponse=3D[tcpsend skipheader=3DT]GET /statuses/followers= .xml > HTTP/1.0[unurl]%0D%0A[/unurl][!] > [/!]Authorization: Basic [encrypt > method=3DBase64][user_id]:[user_pw][/encrypt][unurl]%0D%0A[/unurl][!] > [/!][unurl]%0D%0A%0D%0A[/unurl][/tcpsend][/text][!] > [/!][/tcpconnect][!] >=20 > [/!][xmlresponse] "Dan Strong"

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:

Help formatting search results w/ table (1997) Line Feed Character Appended (1998) using showpage and showcart commands (1996) Editing Users.db (1997) Rhapsody? (1997) Duplicate Cart ID (2001) FRAME SRC references (2000) Getting URL's entered manually (1997) Search in 2 or more catalogs (1997) Tool of Use to Unix WebCat Admins (2000) why why why (2004) PCS Frames (1997) WebCat2: Items xx to xx shown, etc. (1997) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) WCS Newbie question (1997) More than one db with the same namn (was: WC2f3) (1997) Bug or syntax error on my part? (1997) redirect from the errorsMessages.db entry (1997) 2cd pair of eyes please. (2003) Re:2nd WebCatalog2 Feature Request (1996)