This might work if the authorization portion is correct. Always use Host and User-Agent inside the tcpsend because some servers won't respond properly (or at all) without them:
[text]end=[unurl]%0D%0A[/unurl][/text]
[text]host=192.168.0.1[/text]
[tcpconnect host=[host]&port=80]
[tcpsend skipheader=T][!]
[/!]GET /s_status.htm?todo=cfg_init HTTP/1.0[end][!]
[/!]Host: [host][end][!]
[/!]Authorization: Basic [encrypt method=base64][!]
[/!]myusername:mypassword[/encrypt][end][!]
[/!]User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; [!]
[/!]Windows NT 5.0)[end][!]
[/!][end][/tcpsend]
[/tcpconnect]
Sincerely,
Kenneth Grome
--Boundary-01=_WGF+MXLIKDee0Sv-- Associated Messages, from the most recent to the oldest:
|
This might work if the authorization portion is correct. Always use Host and User-Agent inside the tcpsend because some servers won't respond properly (or at all) without them:
[text]end=[unurl]%0D%0A[/unurl][/text]
[text]host=192.168.0.1[/text]
[tcpconnect host=[host]&port=80]
[tcpsend skipheader=T][!]
[/!]GET /s_status.htm?todo=cfg_init HTTP/1.0[end][!]
[/!]Host: [host][end][!]
[/!]Authorization: Basic [encrypt method=base64][!]
[/!]myusername:mypassword[/encrypt][end][!]
[/!]User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; [!]
[/!]Windows NT 5.0)[end][!]
[/!][end][/tcpsend]
[/tcpconnect]
Sincerely,
Kenneth Grome
--Boundary-01=_WGF+MXLIKDee0Sv-- Kenneth GromeDOWNLOAD 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...