Re: [WebDNA] TCPConnect Problem
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 106024
interpreted = N
texte = --Boundary-01=_WGF+MXLIKDee0SvContent-Type: text/plain; charset="iso-8859-1"Content-Transfer-Encoding: 7bitThis 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+MXLIKDee0SvContent-Type: text/html; charset="iso-8859-1"Content-Transfer-Encoding: 7bit
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:
--Boundary-01=_WGF+MXLIKDee0SvContent-Type: text/plain; charset="iso-8859-1"Content-Transfer-Encoding: 7bitThis 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+MXLIKDee0SvContent-Type: text/html; charset="iso-8859-1"Content-Transfer-Encoding: 7bit
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 Grome
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:
Updating checkboxes made easy !!! (1998)
Out of the woodwork (2007)
[WebDNA] Passing a text variable via copyfile (2019)
Trouble with carts (2000)
unusual search problem (1998)
flushdatabases (1997)
WebCatalog 4.0.2b5 available (2000)
WebCatalog for guestbook ? (1997)
Protect and Serve (1999)
ShowNext (1997)
6.0 upgrade issue? (2005)
db Translation (2002)
Comments in db? (1997)
OS X, Communigate Pro & Line Breaks (2003)
Question re: FlushDatabases (1997)
Closing Databases (1998)
shipcost (1997)
NT installation (2000)
WebCat b13 CGI -shownext- (1997)
HTTP header line is too long? (1997)