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+MXLIKDee0Sv Content-Type: text/plain; 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 Content-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:

    
  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)
--Boundary-01=_WGF+MXLIKDee0Sv Content-Type: text/plain; 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 Content-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:

bug in [SendMail] (1997) refreshing IE with posted .tmpl (1997) newbie Q: [cart] documentation (1999) Authenticating users without dialog box (1997) WebCat2 several catalogs? (1997) Date search - yes or no (1997) [WebDNA] [OT] Mac Audit Software? (2009) WebCat2final1 crashes (1997) Writefile, Raw & include (2002) How do I get WebCatalog to interpret WebDNA tags in.html files? (1997) WCS Newbie question (1997) [WebDNA] [OT] the "Work in progress" thread. (2009) Document Contains no data, or showcart error. (1997) Re:listfiles-looking for slick solution (1997) [WebDNA] [ArrayGet] [ArraySet] (2014) [WebDNA] Nice work on the Video Tutorials (2009) eq (2000) # of real domains on 1 web server (1997) setitems, one more thing (1997) SiteEdit NewFile.html ? (1997)