[WebDNA] TCPConnect Problem
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 106017
interpreted = N
texte = HiI have a dodgy broadband line at the moment and as part of the fix I =have been asked to supply sync rate speeds at regular intervals. To do =this I thought I would try something with tcpconnect and a trigger and =writing the result into a db. I am using the following to try and get =the router status webpage into a text variable. Once I have achieved =that I will extract the bit of info I need and write it to a db.=20The web address of the page I need in the router is...http://192.168.0.1/s_status.htm&todo=3Dcfg_initIt also needs a username and password sent with it so I have been trying =this...[text show=3Df]DownloadSpeed=3D[tcpconnect host=3D192.168.0.1&port=3D80][!=][/!][tcpsend skipheader=3DT]GET =http://192.168.0.1/s_status.htm&todo=3Dcfg_init =HTTP/1.0[UnURL]%0D%0A[/UnURL][!][/!]Authorization: Basic [Encrypt =method=3DBase64]myusername:mypassword[/Encrypt][!]=[/!][UnURL]%0D%0A[/UnURL][UnURL]%0D%0A[/UnURL][/TCPSend][/tcpconnect][/tex=t]It is connecting to the router ok but the text object is returning...
400 Bad Request400 Bad Request
Bad filename.Any help with the tcp stuff would be much appreciated.Cheers=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSteve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dhttp://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Associated Messages, from the most recent to the oldest:
HiI have a dodgy broadband line at the moment and as part of the fix I =have been asked to supply sync rate speeds at regular intervals. To do =this I thought I would try something with tcpconnect and a trigger and =writing the result into a db. I am using the following to try and get =the router status webpage into a text variable. Once I have achieved =that I will extract the bit of info I need and write it to a db.=20The web address of the page I need in the router is...http://192.168.0.1/s_status.htm&todo=3Dcfg_initIt also needs a username and password sent with it so I have been trying =this...[text show=3Df]DownloadSpeed=3D[tcpconnect host=3D192.168.0.1&port=3D80][!=][/!][tcpsend skipheader=3DT]GET =http://192.168.0.1/s_status.htm&todo=3Dcfg_init =HTTP/1.0
[unurl]%0D%0A[/UnURL]
[!][/!]Authorization: Basic [Encrypt =method=3DBase64]myusername:mypassword[/Encrypt]
[!]=[/!]
[unurl]%0D%0A[/UnURL]
[unurl]%0D%0A[/UnURL][/TCPSend][/tcpconnect][/tex=t]It is connecting to the router ok but the text object is returning...
400 Bad Request400 Bad Request
Bad filename.Any help with the tcp stuff would be much appreciated.Cheers=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSteve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dhttp://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Steve Craig
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:
Generating unique SKU from [cart] - FIXED! (1997)
Mail Integration (1999)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Webcat 2.0.1 date math bug -> Crash! (1997)
Donovans Theorem (2003)
[WebDNA] Instructions for install on CentOS 5.7? (2011)
Setting up shop (1997)
webcat in the subject line - SMSI (2002)
Error:Too many nested [xxx] contexts (1997)
Training Videos for 3.0 (1998)
Associative lookup style? (1997)
How does WebCatalog search the database? (1997)
Autoreturn Submit? (1997)
mySQL/OSX (2001)
Searching (2005)
includes and cart numbers (1997)
Header info in content (1998)
can WC render sites out? (1997)
Cyberstudio and WebDNA (1997)
[WebDNA] paypal (2009)