Re: [WebDNA] Paypal Sandbox TCPConnect
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 108791
interpreted = N
texte = Many thanks, Chris.On 6 Mar 2012, at 15:08, christophe.billiottet@webdna.us wrote:> Hi Phil! should work now: just a firewall setup with api-3t.sandbox.paypal.com> > - chris> > > On Mar 6, 2012, at 12:53, Philip Edell wrote:> >> Hi Ken,>> >> Thanks very much for your contribution.>> >> I have tried many combos of header to try and isolate the problem, without success.>> >> With your code...>> >> This works:>> >> [text]host=api-3t.paypal.com[/text]>> [text]path=/nvp[/text]>> [text]crlf=[unurl]%0D%0A[/unurl][/text]>> [text]content=TEST[/text]>> >> This doesn't:>> >> [text]host=api-3t.sandbox.paypal.com[/text]>> [text]path=/nvp[/text]>> [text]crlf=[unurl]%0D%0A[/unurl][/text]>> [text]content=TEST[/text]>> >> All the best,>> >> Phil.>> On 6 Mar 2012, at 14:43, WebDNA Solutions wrote:>> >>> Some tcpconnects don't work unless you specify the host in>>> the headers as well as in the tcpconnect tag. Here's an >>> example of the code I use that seems to work:>>> >>> [text]host=www.paypal.com[/text]>>> [text]path=/cgi-bin/webscr[/text]>>> [text]crlf=[unurl]%0D%0A[/unurl][/text]>>> [text]content=... name=value pairs here ...[/text]>>> >>> [tcpconnect host=[host]&port=443&ssl=T]>>> [tcpsend skipheader=T]POST [path] HTTP/1.0[crlf][!]>>> [/!]Host: [host][crlf][!]>>> [/!]User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)[crlf][!]>>> [/!]Content-Type: text/namevalue[crlf][!]>>> [/!]Content-Length: [countchars][content][/countchars][crlf][crlf][!]>>> [/!][content][crlf][!]>>> [/!][/tcpsend]>>> [/tcpconnect]>>> >>> Sincerely,>>> Kenneth Grome>>> WebDNA Solutions>>> http://www.webdnasolutions.com>>> WebDNA Programming and Linux Server Administration>>> >>> >>> >>> >>>> Hi All,>>>> >>>> Many years since I have posted to WebDNA talk list...>>>> last post 2004!>>>> >>>> I am trying to connect to the Paypal sandbox endpoint>>>> api-3t.sandbox.paypal.com and cannot:>>>> >>>> The only difference between these two TCPConnects is the>>>> host name...>>>> >>>> [text]CRLF=[unurl]%0D%0A[/unurl][/text]>>>> >>>> [!] CONNECTS [/!]
>>>> [tcpconnect>>>> host=api-3t.paypal.com&port=443&ssl=T][tcpsend>>>> skipheader=T]POST /nvp HTTP/1.0[CRLF]Content-type:>>>> text/namevalue[CRLF][CRLF][/tcpsend][/tcpconnect]>>>> >>>> [!] DOES NOT CONNECT - TIMES OUT[/!]
>>>> [tcpconnect>>>> host=api-3t.sandbox.paypal.com&port=443&ssl=T][tcpsend>>>> skipheader=T]POST /nvp HTTP/1.0[CRLF]Content-type:>>>> text/namevalue[CRLF][CRLF][/tcpsend][/tcpconnect]>>>> >>>> >>>> The sandbox endpoint is correct as can be seen here:>>>> >>>> [!] CONNECTS [/!]
>>>>
TEST>>>> >>>> [!] CONNECTS [/!]
>>>>
>>>> >>>> I'm not bothered (yet) about the ACK=Failure, just would>>>> love to make the connection!>>>> >>>> Any advice you guys can offer would be great.>>>> >>>> All the best,>>>> >>>> Phil.>>>> --------------------------------------------------------->>>> This message is sent to you because you are subscribed to>>>> the mailing list
.>>>> To unsubscribe, E-mail to: >>>> archives: http://mail.webdna.us/list/talk@webdna.us>>>> Bug Reporting: support@webdna.us>>> --------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list .>>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us>>> Bug Reporting: support@webdna.us>> >> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us> > ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
Associated Messages, from the most recent to the oldest:
Many thanks, Chris.On 6 Mar 2012, at 15:08, christophe.billiottet@webdna.us wrote:> Hi Phil! should work now: just a firewall setup with api-3t.sandbox.paypal.com> > - chris> > > On Mar 6, 2012, at 12:53, Philip Edell wrote:> >> Hi Ken,>> >> Thanks very much for your contribution.>> >> I have tried many combos of header to try and isolate the problem, without success.>> >> With your code...>> >> This works:>> >> [text]host=api-3t.paypal.com[/text]>> [text]path=/nvp[/text]>> [text]crlf=[unurl]%0D%0A[/unurl][/text]>> [text]content=TEST[/text]>> >> This doesn't:>> >> [text]host=api-3t.sandbox.paypal.com[/text]>> [text]path=/nvp[/text]>> [text]crlf=[unurl]%0D%0A[/unurl][/text]>> [text]content=TEST[/text]>> >> All the best,>> >> Phil.>> On 6 Mar 2012, at 14:43, WebDNA Solutions wrote:>> >>> Some tcpconnects don't work unless you specify the host in>>> the headers as well as in the tcpconnect tag. Here's an >>> example of the code I use that seems to work:>>> >>> [text]host=www.paypal.com[/text]>>> [text]path=/cgi-bin/webscr[/text]>>> [text]crlf=[unurl]%0D%0A[/unurl][/text]>>> [text]content=... name=value pairs here ...[/text]>>> >>> [tcpconnect host=[host]&port=443&ssl=T]>>> [tcpsend skipheader=T]POST [path] HTTP/1.0[crlf][!]>>> [/!]Host: [host][crlf][!]>>> [/!]User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)[crlf][!]>>> [/!]Content-Type: text/namevalue[crlf][!]>>> [/!]Content-Length: [countchars][content][/countchars][crlf][crlf][!]>>> [/!][content][crlf][!]>>> [/!][/tcpsend]>>> [/tcpconnect]>>> >>> Sincerely,>>> Kenneth Grome>>> WebDNA Solutions>>> http://www.webdnasolutions.com>>> WebDNA Programming and Linux Server Administration>>> >>> >>> >>> >>>> Hi All,>>>> >>>> Many years since I have posted to WebDNA Talk List...>>>> last post 2004!>>>> >>>> I am trying to connect to the Paypal sandbox endpoint>>>> api-3t.sandbox.paypal.com and cannot:>>>> >>>> The only difference between these two TCPConnects is the>>>> host name...>>>> >>>> [text]CRLF=[unurl]%0D%0A[/unurl][/text]>>>> >>>> [!] CONNECTS [/!]
>>>> [tcpconnect>>>> host=api-3t.paypal.com&port=443&ssl=T][tcpsend>>>> skipheader=T]POST /nvp HTTP/1.0[CRLF]Content-type:>>>> text/namevalue[CRLF][CRLF][/tcpsend][/tcpconnect]>>>> >>>> [!] DOES NOT CONNECT - TIMES OUT[/!]
>>>> [tcpconnect>>>> host=api-3t.sandbox.paypal.com&port=443&ssl=T][tcpsend>>>> skipheader=T]POST /nvp HTTP/1.0[CRLF]Content-type:>>>> text/namevalue[CRLF][CRLF][/tcpsend][/tcpconnect]>>>> >>>> >>>> The sandbox endpoint is correct as can be seen here:>>>> >>>> [!] CONNECTS [/!]
>>>> TEST>>>> >>>> [!] CONNECTS [/!]
>>>> >>>> >>>> I'm not bothered (yet) about the ACK=Failure, just would>>>> love to make the connection!>>>> >>>> Any advice you guys can offer would be great.>>>> >>>> All the best,>>>> >>>> Phil.>>>> --------------------------------------------------------->>>> This message is sent to you because you are subscribed to>>>> the mailing list .>>>> To unsubscribe, E-mail to: >>>> archives: http://mail.webdna.us/list/talk@webdna.us>>>> Bug Reporting: support@webdna.us>>> --------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list .>>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us>>> Bug Reporting: support@webdna.us>> >> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us> > ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
Philip Edell
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:
WebDelivery downloads alias, not original ? (1997)
Search in 2 or more catalogs (1997)
Trigger to restart Webcat Service (2001)
Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997)
Database cloning- will the real -oRiGiNaL- please stand up (2003)
adding shipping cost (1998)
Template Not Found (1998)
problem with NT beta (1997)
Frames (1997)
WebCatalog on Linux (2000)
Date Calulation (1997)
List Address Changed! (1998)
Monthly Reports (2000)
[convertChars] and HTML Tags (1997)
Multiple prices (1997)
Associative lookup style? + bit more (1997)
WC2b12: Yes, Formulas.db is for real (1997)
I'm having trouble using [url][interpret][math] together inlookup (1997)
Tech question about web dna actions (1998)
Include vs. lookup? (1998)