Hi
I 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.
The web address of the page I need in =the router is...
http://192.16=8.0.1/s_status.htm&todo=3Dcfg_init
It 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[/U=nURL][UnURL]%0D%0A[/UnURL][/TCPSend][/tcpconnect][/text]
It is =connecting to the router ok but the text object is =returning...
<HTML>
<HEAD><TITLE>400 Bad =Request</TITLE></HEAD>
<BODY BGCOLOR=3D"#cc9999" =TEXT=3D"#000000" LINK=3D"#2020ff" VLINK=3D"#4040cc">
<H4>400 =Bad Request</H4>
Bad =filename.
</BODY>
</HTML>
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=3D=
Steve Craig - Asylum Interactive Ltd
Tel +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=3D
http://www.asylu=mweb.com
Email: steve@asylumweb.com
Skype: 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
---------------------------------------------------------
Thi=s message is sent to you because you are subscribed to
the mailing =list <talk@webdna.us>.
To unsubscribe, E-mail to: =<talk-leave@webdna.us>
archives: =http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: =support@webdna.us
|
Hi
I 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.
The web address of the page I need in =the router is...
http://192.16=8.0.1/s_status.htm&todo=3Dcfg_init
It 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[/U=nURL][unurl]%0D%0A[/UnURL][/TCPSend][/tcpconnect][/text]
It is =connecting to the router ok but the text object is =returning...
<HTML>
<HEAD><TITLE>400 Bad =Request</TITLE></HEAD>
<BODY BGCOLOR=3D"#cc9999" =TEXT=3D"#000000" LINK=3D"#2020ff" VLINK=3D"#4040cc">
<H4>400 =Bad Request</H4>
Bad =filename.
</BODY>
</HTML>
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=3D=
Steve Craig - Asylum Interactive Ltd
Tel +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=3D
http://www.asylu=mweb.com
Email: steve@asylumweb.com
Skype: 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
---------------------------------------------------------
Thi=s message is sent to you because you are subscribed to
the mailing =list <talk@webdna.us>.
To unsubscribe, E-mail to: =<talk-leave@webdna.us>
archives: =http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: =support@webdna.us
DOWNLOAD WEBDNA NOW!
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...