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:

retain raw [cart] submitted value (2004) [listfiles] problems (1997) Re2: Calculating multiple shipping... (1997) WebCatalog Upgrade Pricing? (1997) Bad "from" address in sendmail (2004) (1997) Separate SSL Server (1997) Error:Too many nested [xxx] contexts (1997) Include a big block of text (1997) splitting numbers in webDNA? (1997) Credit card types (1997) Hard Questions ? (1997) decrypt and summ problems (1999) WebCat Code and WebStar Search? (2000) [ShowIf] and empty fields (1997) [input] [/input] (1997) Return records from another (1997) Happy VD! (2004) PIXO support (1997) showif and cart (1997)