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:

WebCat2 - storing unformatted date data? (1997) show all problem (1997) Help formatting search results w/ table (1997) Spiders and Bots (2000) uninstalling webcatalog (2000) Sorting by type=date (1999) [WebDNA] how to clear the [username] and [password] values the browser has stored? (2008) Cold Fusion Buster (1997) Multiple results (2001) Re:How to Display text in empty fields (1997) for those in need of inspiration [OT] (2003) Special delete ... (1997) Template Not Found (1998) OT: Linux Frustrations (2001) Dumb Question about Docs (1997) ooops...WebCatalog [FoundItems] Problem - LONG - (1997) WebCatalog and WebTen (1997) When do we get to request new features? (1999) Pirated WebCat? NOT... (2003) URGENT: WebDNA Server Not Running (2003)