Re: [WebDNA] TcpConnect Help
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 106826
interpreted = N
texte = I've struggled with this before only to realize that its as simple as changingthisHTTP/1.1toHTTP/1.0-or-add this header..Connection: closethe 1.1 method uses persistent connections by default. I don't myself know of a way that the WebDna TCP syntax can support a persistent connection, so you have to specify the connection: close in the headers if you're using 1.1. I would just go with 1.0 though. That should do the trick.I always include the host header as wellOn 6/25/11 3:52 PM, Kenneth Grome wrote:> Sometimes you have to put the host in a header.>> Sincerely,> Kenneth Grome>>>>> For the life of me I can see why I cant get this simple>> form to work.>>>>>> Here is the basic form delivered from the clients>> marketing servcie.
>>>> The form works fine.>> But when I try to convert this to a tcp submission I get>> either a bad host or bad url.>>>>>> [text]content=alex@mccombie.com&field6=ny[/text]>> [text]server-response=[TCPconnect>> host=click.po155.com][!] [/!][TCPsend]POST /OptIn.aspx>> HTTP/1.1[unURL]%0D%0A[/unURL][!] [/!]USER-AGENT:>> Mozilla/4.0 (compatible; MSIE 5.01; Windows NT>> 5.0)[unURL]%0D%0A[/unURL][!]>> [/!]Content-Type: text/xml;>> charset=utf-8[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]>>>> [server-response]>>>> Can anyone get this working or see something stupid I am>> missing?>>>> Thanks>> alex> ---------------------------------------------------------> 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:
I've struggled with this before only to realize that its as simple as changingthisHTTP/1.1toHTTP/1.0-or-add this header..Connection: closethe 1.1 method uses persistent connections by default. I don't myself know of a way that the WebDna TCP syntax can support a persistent connection, so you have to specify the connection: close in the headers if you're using 1.1. I would just go with 1.0 though. That should do the trick.I always include the host header as wellOn 6/25/11 3:52 PM, Kenneth Grome wrote:> Sometimes you have to put the host in a header.>> Sincerely,> Kenneth Grome>>>>> For the life of me I can see why I cant get this simple>> form to work.>>>>>> Here is the basic form delivered from the clients>> marketing servcie.>>>> The form works fine.>> But when I try to convert this to a tcp submission I get>> either a bad host or bad url.>>>>>> [text]content=alex@mccombie.com&field6=ny[/text]>> [text]server-response=[TCPconnect>> host=click.po155.com][!] [/!][tcpsend]POST /OptIn.aspx>> HTTP/1.1[unurl]%0D%0A[/unURL][!] [/!]USER-AGENT:>> Mozilla/4.0 (compatible; MSIE 5.01; Windows NT>> 5.0)[unurl]%0D%0A[/unURL][!]>> [/!]Content-Type: text/xml;>> charset=utf-8[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]>>>> [server-response]>>>> Can anyone get this working or see something stupid I am>> missing?>>>> Thanks>> alex> ---------------------------------------------------------> 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
Aaron Michael Kaczmarek
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:
Country & Ship-to address & other fields ? (1997)
OK, here's a new one (2002)
pc (1997)
WC Database Format (1997)
I give up!! (1997)
Re1000001: Setting up shop (1997)
Fedora Core 6 (2007)
select multiple (1997)
Error after loading WebDNA (2004)
Error: Too many nested [xxx] contexts (1997)
[BULK] [WebDNA] sem_open solved (2012)
WebCat for Unix (1999)
Our Webcat site launched (1997)
Summing fields (1997)
Configuring E-mail (1997)
[SearchString] usage (1997)
YACBQ.....(Yet another checkbox question) (2000)
PIXO support (1997)
Error 11 (1996)
WebCommerce: Folder organization ? (1997)