Re: [WebDNA] Tcpconnect to UPS - Error: couldn't connect to host

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 106000
interpreted = N
texte = --Apple-Mail-27-572141259 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 2 things 1. Think the tcpconnect host command needs to have host only.=20 ie=20 > [tcpconnect host=3Dups.com/ups.app/xml/Rate&port=3D443&ssl=3Dt] becomes [tcpconnect host=3Dups.com&port=3D443&ssl=3Dt] [tcpsend]POST /ups.app/xml/Rate/transaction etc also, for some domains, you needs to stick the HTTP header=20 Host: {hostname} so you would have Host: ups.com here. I've also had some trouble in past with SSL & TCP so you could try [shell]curl -d "myvar1=3Dnuts&myvar2=3Dbolts" = "https://ups.com/ups.app/xml/Rate/transaction"[/shell] TC On 20 Nov 2010, at 12:08, Steve Raslevich wrote: > Hello everyone, >=20 > Could someone tell me what is wrong with the the code below to connect = to ups.com? The reply I'm getting is: > =EF=BB=BFError: couldn't connect to host [ups.com/ups.app/xml/Rate]=20 >=20 > [text]reply=3D[tcpconnect = host=3Dups.com/ups.app/xml/Rate&port=3D443&ssl=3Dt] > [tcpsend]POST /transaction HTTP/1.0[unurl]%0D%0A[/unurl][!] > [/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) > [unurl]%0D%0A[/unurl][!] > [/!]Content-Type:text/namevalue[unurl]%0D%0A[/unurl][!] > = [/!]Content-Length:[CountChars][content][/CountChars][unurl]%0D%0A[/unurl]= [!] > [/!][unurl]%0D%0A[/unurl][!] > [/!][content][unurl]%0D%0A[/unurl][!] > [/!][/tcpsend] > [/tcpconnect] > [/text] >=20 >=20 > Thank you, > Steve >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > --=20 > Steve Raslevich > President/CEO > Northern Sound & Light, Inc. > 11 Shingiss Street > McKees Rocks, Pennsylvania 15136 >=20 > Phone: (412) 331-1000 > Fax: (412) 331-1035 >=20 > http://www.northernsound.net >=20 > ------------------------------------------------------------------- > This Email and any files transmitted with it contain confidential, = non-public information intended solely for the use of the individual to = whom or the entity to which they are addressed. Unauthorized use, = reproduction, distribution or communication of this message or any = information contained or attached to this message is strictly prohibited = and may be unlawful.=20 >=20 > If you have received this email in error please notify the sender = immediately by e-mail or contact Northern Sound & Light at = frontdesk@northernsound.net or (412) 331-1000. > ------------------------------------------------------------------- --Apple-Mail-27-572141259 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
2 things

1. Think the tcpconnect host = command needs to have host = only. 

ie 

[tcpconnect = host=3Dups.com/ups.app/xml/Rate&port=3D443&ssl=3Dt]<= /div>
becomes

[tcpconn= ect = host=3Dups.com&port=3D443&ssl=3Dt]
[tcpsend]POST /u= ps.app/xml/Rate/transaction


etc

also, for some domains, you needs to stick = the HTTP header 

Host: = {hostname}

so you would = have

Host: ups.com

here.



I've also had some = trouble in past with SSL & TCP

so you could = try

[shell]curl -d = "myvar1=3Dnuts&myvar2=3Dbolts" "https://ups.com/ups.app/xml/Rate/transaction"[/shell]<= /div>



TC


On 20 Nov 2010, at 12:08, Steve Raslevich = wrote:

Hello everyone,

Could someone tell me what is wrong with the the code below to connect to ups.com? The reply I'm getting is:
=EF=BB=BFError: couldn't connect to host [ups.com/ups.app/xml/Rate]=

[text]reply=3D[tcpconnect host=3Dups.com/ups.app/xml/Rate&port=3D443&ssl=3Dt]
[tcpsend]POST /transaction HTTP/1.0[unurl]%0D%0A[/unurl][!]
[/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
[unurl]%0D%0A[/unurl][!]
[/!]Content-Type:text/namevalue[unurl]%0D%0A[/unurl][!]
= [/!]Content-Length:[CountChars][content][/CountChars][unurl]%0D%0A[/unurl]= [!]
[/!][unurl]%0D%0A[/unurl][!]
[/!][content][unurl]%0D%0A[/unurl][!]
[/!][/tcpsend]
[/tcpconnect]
[/text]


Thank you,
Steve










--=20Steve RaslevichPresident/CEONorthern Sound & Light, Inc.11 Shingiss StreetMcKees Rocks, Pennsylvania 15136Phone: (412) 331-1000Fax: (412) 331-1035http://www.northernsound.net-------------------------------------------------------------------This Email and any files transmitted with it contain confidential, =non-public information intended solely for the use of the individual to =whom or the entity to which they are addressed. Unauthorized use, =reproduction, distribution or communication of this message or any =information contained or attached to this message is strictly prohibited =and may be unlawful.=20If you have received this email in error please notify the sender =immediately by e-mail or contact Northern Sound & Light at frontdesk@northernsound.net or (412) 331-1000.=-------------------------------------------------------------------

= --Apple-Mail-27-572141259-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Tcpconnect to UPS - Error: couldn't connect to host (Toby Cox 2010)
  2. Re: [WebDNA] Tcpconnect to UPS - Error: couldn't connect to host (Kenneth Grome 2010)
  3. [WebDNA] Tcpconnect to UPS - Error: couldn't connect to host (Steve Raslevich 2010)
--Apple-Mail-27-572141259 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 2 things 1. Think the tcpconnect host command needs to have host only.=20 ie=20 > [tcpconnect host=3Dups.com/ups.app/xml/Rate&port=3D443&ssl=3Dt] becomes [tcpconnect host=3Dups.com&port=3D443&ssl=3Dt]
[tcpsend]POST /ups.app/xml/Rate/transaction etc also, for some domains, you needs to stick the HTTP header=20 Host: {hostname} so you would have Host: ups.com here. I've also had some trouble in past with SSL & TCP so you could try [shell]curl -d "myvar1=3Dnuts&myvar2=3Dbolts" = "https://ups.com/ups.app/xml/Rate/transaction"[/shell] TC On 20 Nov 2010, at 12:08, Steve Raslevich wrote: > Hello everyone, >=20 > Could someone tell me what is wrong with the the code below to connect = to ups.com? The reply I'm getting is: > =EF=BB=BFError: couldn't connect to host [ups.com/ups.app/xml/Rate]=20 >=20 > [text]reply=3D[tcpconnect = host=3Dups.com/ups.app/xml/Rate&port=3D443&ssl=3Dt] > [tcpsend]POST /transaction HTTP/1.0[unurl]%0D%0A[/unurl][!] > [/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) > [unurl]%0D%0A[/unurl][!] > [/!]Content-Type:text/namevalue[unurl]%0D%0A[/unurl][!] > = [/!]Content-Length:[countchars][content][/CountChars][unurl]%0D%0A[/unurl]= [!] > [/!][unurl]%0D%0A[/unurl][!] > [/!][content][unurl]%0D%0A[/unurl][!] > [/!][/tcpsend] > [/tcpconnect] > [/text] >=20 >=20 > Thank you, > Steve >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > --=20 > Steve Raslevich > President/CEO > Northern Sound & Light, Inc. > 11 Shingiss Street > McKees Rocks, Pennsylvania 15136 >=20 > Phone: (412) 331-1000 > Fax: (412) 331-1035 >=20 > http://www.northernsound.net >=20 > ------------------------------------------------------------------- > This Email and any files transmitted with it contain confidential, = non-public information intended solely for the use of the individual to = whom or the entity to which they are addressed. Unauthorized use, = reproduction, distribution or communication of this message or any = information contained or attached to this message is strictly prohibited = and may be unlawful.=20 >=20 > If you have received this email in error please notify the sender = immediately by e-mail or contact Northern Sound & Light at = frontdesk@northernsound.net or (412) 331-1000. > ------------------------------------------------------------------- --Apple-Mail-27-572141259 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
2 things

1. Think the tcpconnect host = command needs to have host = only. 

ie 

[tcpconnect = host=3Dups.com/ups.app/xml/Rate&port=3D443&ssl=3Dt]<= /div>
becomes

[tcpconn= ect = host=3Dups.com&port=3D443&ssl=3Dt]
[tcpsend]POST /u= ps.app/xml/Rate/transaction


etc

also, for some domains, you needs to stick = the HTTP header 

Host: = {hostname}

so you would = have

Host: ups.com

here.



I've also had some = trouble in past with SSL & TCP

so you could = try

[shell]curl -d = "myvar1=3Dnuts&myvar2=3Dbolts" "https://ups.com/ups.app/xml/Rate/transaction"[/shell]<= /div>



TC


On 20 Nov 2010, at 12:08, Steve Raslevich = wrote:

Hello everyone,

Could someone tell me what is wrong with the the code below to connect to ups.com? The reply I'm getting is:
=EF=BB=BFError: couldn't connect to host [ups.com/ups.app/xml/Rate]=

[text]reply=3D[tcpconnect host=3Dups.com/ups.app/xml/Rate&port=3D443&ssl=3Dt]
[tcpsend]POST /transaction HTTP/1.0[unurl]%0D%0A[/unurl][!]
[/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
[unurl]%0D%0A[/unurl][!]
[/!]Content-Type:text/namevalue[unurl]%0D%0A[/unurl][!]
= [/!]Content-Length:[countchars][content][/CountChars][unurl]%0D%0A[/unurl]= [!]
[/!][unurl]%0D%0A[/unurl][!]
[/!][content][unurl]%0D%0A[/unurl][!]
[/!][/tcpsend]
[/tcpconnect]
[/text]


Thank you,
Steve










--=20Steve RaslevichPresident/CEONorthern Sound & Light, Inc.11 Shingiss StreetMcKees Rocks, Pennsylvania 15136Phone: (412) 331-1000Fax: (412) 331-1035http://www.northernsound.net-------------------------------------------------------------------This Email and any files transmitted with it contain confidential, =non-public information intended solely for the use of the individual to =whom or the entity to which they are addressed. Unauthorized use, =reproduction, distribution or communication of this message or any =information contained or attached to this message is strictly prohibited =and may be unlawful.=20If you have received this email in error please notify the sender =immediately by e-mail or contact Northern Sound & Light at frontdesk@northernsound.net or (412) 331-1000.=-------------------------------------------------------------------

= --Apple-Mail-27-572141259-- Toby Cox

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:

Some Questions (1997) Storefornts (1997) UPS Shipping (1999) nested ListWords? (2003) problems with 2 tags (1997) RE: [WebDNA] Random Numbers no repeat within a range (2014) WCS Newbie question (1997) [WebDNA] Friday February 13, 2009 (2009) can WC render sites out? (1997) tcpconnect (1999) Help! WebCat2 bug (1997) WC TableGrinder (1997) Search in 2 or more catalogs (1997) no global [username] or [password] displayed ... (1997) Help on how to store calculated value (2002) Erotic Sites (1997) In Digest Dijon (2000) WebCatalog 3.0.8 is on FTP... (2000) Database multiple selections (1998) Multiple prices (1997)