Re: [WebDNA] TCPConnect Problem

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 106023
interpreted = N
texte = --Apple-Mail-2--499940615 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Try going back to GET instead of POST Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 03/12/2010, at 12:27 PM, Steve Craig wrote: > Still no joy I'm afraid. >=20 > =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.asylumweb.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 >=20 >=20 >=20 >=20 > On 3 Dec 2010, at 00:51, Stuart Tremain wrote: >=20 >> May also need a content type >>=20 >> [/!]Content-type: text/html[UnURL]%0D%0A[/UnURL][!] >>=20 >>=20 >> And/or length >>=20 >> [/!]Content-Length: = [CountChars][content][/CountChars][UnURL]%0D%0A[/UnURL][!] >>=20 >>=20 >> Regards >>=20 >> Stuart Tremain >> IDFK Web Developments >> AUSTRALIA >> webdna@idfk.com.au >>=20 >>=20 >>=20 >>=20 >> On 03/12/2010, at 11:13 AM, Steve Craig wrote: >>=20 >>> Hi >>>=20 >>> Thanks for the reply but now I get nothing at all returned. Any = other possibilities? >>>=20 >>> 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.asylumweb.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 >>>=20 >>>=20 >>>=20 >>>=20 >>> On 2 Dec 2010, at 23:44, Stuart Tremain wrote: >>>=20 >>>> Try this .... >>>>=20 >>>> [text show=3Df]DownloadSpeed=3D[tcpconnect = host=3D192.168.0.1&port=3D80&SSL=3DF] >>>> [tcpsend skipheader=3DT]POST /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][/text] >>>>=20 >>>> I have also swapped GET to POST >>>>=20 >>>> Regards >>>>=20 >>>> Stuart Tremain >>>> IDFK Web Developments >>>> AUSTRALIA >>>> webdna@idfk.com.au >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>> On 03/12/2010, at 10:35 AM, Steve Craig wrote: >>>>=20 >>>>> Hi >>>>>=20 >>>>> 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.=20 >>>>>=20 >>>>> The web address of the page I need in the router is... >>>>> http://192.168.0.1/s_status.htm&todo=3Dcfg_init >>>>>=20 >>>>> It also needs a username and password sent with it so I have been = trying this... >>>>>=20 >>>>> [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] >>>>>=20 >>>>> It is connecting to the router ok but the text object is = returning... >>>>>=20 >>>>> >>>>> 400 Bad Request >>>>> >>>>>

400 Bad Request

>>>>> Bad filename. >>>>> >>>>> >>>>>=20 >>>>> Any help with the tcp stuff would be much appreciated. >>>>>=20 >>>>> 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.asylumweb.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 >>>>>=20 >>>>>=20 >>>>>=20 >>>>>=20 >>>>>=20 >>>>> --------------------------------------------------------- >>>>> This message is sent to you because you are subscribed to >>>>> the mailing list . >>>>> To unsubscribe, E-mail to: >>>>> archives: http://mail.webdna.us/list/talk@webdna.us >>>>> Bug Reporting: support@webdna.us >>>>=20 >>>=20 >>=20 >=20 --Apple-Mail-2--499940615 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Try = going back to GET instead of POST


Regards

Stuart = Tremain
IDFK Web Developments
AUSTRALIA




On 03/12/2010, at 12:27 PM, Steve Craig wrote:

Still no joy I'm = afraid.

=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.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


On 3 Dec 2010, at 00:51, Stuart Tremain wrote:

May also need a content = type

[/!]Content-type: = text/html[UnURL]%0D%0A[/UnURL][!]


And/or length

[/!]Content-Length: = [CountChars][content][/CountChars][UnURL]%0D%0A[/UnURL][!]


Regards

Stuart Tremain
IDFK = Web Developments
AUSTRALIA




On 03/12/2010, at 11:13 AM, Steve Craig wrote:

Hi

Thanks = for the reply but now I get nothing at all returned. Any other = possibilities?

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.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


On 2 Dec 2010, at 23:44, Stuart Tremain wrote:

Try this = ....

[text show=3Df]DownloadSpeed=3D[tcpconnect = host=3D192.168.0.1&port=3D80&SSL=3DF]
[tcpsend skipheader=3DT]POST /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][/text]

I have also swapped GET to = POST

Regards

Stuart Tremain
IDFK = Web Developments
AUSTRALIA




On 03/12/2010, at 10:35 AM, Steve Craig wrote:

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.16= 8.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.asylumweb.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>
archi= ves: http://mail.webdna.us/l= ist/talk@webdna.us
Bug Reporting: support@webdna.us


=



= --Apple-Mail-2--499940615-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] TCPConnect Problem (Kenneth Grome 2010)
  2. Re: [WebDNA] TCPConnect Problem (Stuart Tremain 2010)
  3. Re: [WebDNA] TCPConnect Problem (Steve Craig 2010)
  4. Re: [WebDNA] TCPConnect Problem (Stuart Tremain 2010)
  5. Re: [WebDNA] TCPConnect Problem (Stuart Tremain 2010)
  6. Re: [WebDNA] TCPConnect Problem (Steve Craig 2010)
  7. Re: [WebDNA] TCPConnect Problem (Stuart Tremain 2010)
  8. [WebDNA] TCPConnect Problem (Steve Craig 2010)
--Apple-Mail-2--499940615 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Try going back to GET instead of POST Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 03/12/2010, at 12:27 PM, Steve Craig wrote: > Still no joy I'm afraid. >=20 > =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.asylumweb.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 >=20 >=20 >=20 >=20 > On 3 Dec 2010, at 00:51, Stuart Tremain wrote: >=20 >> May also need a content type >>=20 >> [/!]Content-type: text/html[unurl]%0D%0A[/UnURL][!] >>=20 >>=20 >> And/or length >>=20 >> [/!]Content-Length: = [countchars][content][/CountChars][unurl]%0D%0A[/UnURL][!] >>=20 >>=20 >> Regards >>=20 >> Stuart Tremain >> IDFK Web Developments >> AUSTRALIA >> webdna@idfk.com.au >>=20 >>=20 >>=20 >>=20 >> On 03/12/2010, at 11:13 AM, Steve Craig wrote: >>=20 >>> Hi >>>=20 >>> Thanks for the reply but now I get nothing at all returned. Any = other possibilities? >>>=20 >>> 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.asylumweb.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 >>>=20 >>>=20 >>>=20 >>>=20 >>> On 2 Dec 2010, at 23:44, Stuart Tremain wrote: >>>=20 >>>> Try this .... >>>>=20 >>>> [text show=3Df]DownloadSpeed=3D[tcpconnect = host=3D192.168.0.1&port=3D80&SSL=3DF] >>>> [tcpsend skipheader=3DT]POST /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][/text] >>>>=20 >>>> I have also swapped GET to POST >>>>=20 >>>> Regards >>>>=20 >>>> Stuart Tremain >>>> IDFK Web Developments >>>> AUSTRALIA >>>> webdna@idfk.com.au >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>> On 03/12/2010, at 10:35 AM, Steve Craig wrote: >>>>=20 >>>>> Hi >>>>>=20 >>>>> 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.=20 >>>>>=20 >>>>> The web address of the page I need in the router is... >>>>> http://192.168.0.1/s_status.htm&todo=3Dcfg_init >>>>>=20 >>>>> It also needs a username and password sent with it so I have been = trying this... >>>>>=20 >>>>> [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] >>>>>=20 >>>>> It is connecting to the router ok but the text object is = returning... >>>>>=20 >>>>> >>>>> 400 Bad Request >>>>> >>>>>

400 Bad Request

>>>>> Bad filename. >>>>> >>>>> >>>>>=20 >>>>> Any help with the tcp stuff would be much appreciated. >>>>>=20 >>>>> 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.asylumweb.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 >>>>>=20 >>>>>=20 >>>>>=20 >>>>>=20 >>>>>=20 >>>>> --------------------------------------------------------- >>>>> This message is sent to you because you are subscribed to >>>>> the mailing list . >>>>> To unsubscribe, E-mail to: >>>>> archives: http://mail.webdna.us/list/talk@webdna.us >>>>> Bug Reporting: support@webdna.us >>>>=20 >>>=20 >>=20 >=20 --Apple-Mail-2--499940615 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Try = going back to GET instead of POST


Regards

Stuart = Tremain
IDFK Web Developments
AUSTRALIA




On 03/12/2010, at 12:27 PM, Steve Craig wrote:

Still no joy I'm = afraid.

=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.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


On 3 Dec 2010, at 00:51, Stuart Tremain wrote:

May also need a content = type

[/!]Content-type: = text/html[unurl]%0D%0A[/UnURL][!]


And/or length

[/!]Content-Length: = [countchars][content][/CountChars][unurl]%0D%0A[/UnURL][!]


Regards

Stuart Tremain
IDFK = Web Developments
AUSTRALIA




On 03/12/2010, at 11:13 AM, Steve Craig wrote:

Hi

Thanks = for the reply but now I get nothing at all returned. Any other = possibilities?

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.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


On 2 Dec 2010, at 23:44, Stuart Tremain wrote:

Try this = ....

[text show=3Df]DownloadSpeed=3D[tcpconnect = host=3D192.168.0.1&port=3D80&SSL=3DF]
[tcpsend skipheader=3DT]POST /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][/text]

I have also swapped GET to = POST

Regards

Stuart Tremain
IDFK = Web Developments
AUSTRALIA




On 03/12/2010, at 10:35 AM, Steve Craig wrote:

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.16= 8.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.asylumweb.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>
archi= ves: http://mail.webdna.us/l= ist/talk@webdna.us
Bug Reporting: support@webdna.us


=



= --Apple-Mail-2--499940615-- Stuart Tremain

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:

Who is doing sign-ups-got it (1998) Add a field to the error log? (1997) WebCat2 beta 11 - new prefs ... (1997) How old am I? (2004) [WebDNA] multi-file upload (2016) table max? (2001) Ooops..Broswer Info.txt (was Web*SSL and WebCatalog) (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) eq (2000) date pref (1999) emailer (1997) GuestBook example (1997) RE: incrementing a counter remotely? (1999) RE: Answer: WebDelivery downloads alias, not original ? (1997) URGENT: NO BUG, woFIELDdata & FIELDword=ww (2002) Multiple prices (1997) Running 2 two WebCatalog.acgi's (1996) [format 40s]text[/format] doesn't work (1997) blank page from template (1997) Multiple Merchant Accounts? (1997)