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 changing this HTTP/1.1 to HTTP/1.0 -or- add this header.. Connection: close the 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 well On 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.
> method='post' >> action='http://click.po155.com/OptIn.aspx?OptinFormID=2& >> 26241823=4169' onsubmit='return validate2();'> >> >> >> >> >> >>
>> state> type='text' name='field6' />
Email Address> name='UEmail'/>
> valign="top" colspan="2">> name='submit' value='Submit'/>
>>
>> >> 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:

    
  1. Re: [WebDNA] TCPConnect Help (Steve Craig 2014)
  2. Re: [WebDNA] TCPConnect Help (Palle Bo Nielsen 2014)
  3. Re: [WebDNA] TCPConnect Help (Stuart Tremain 2014)
  4. Re: [WebDNA] TCPConnect Help (Steve Craig 2014)
  5. Re: [WebDNA] TCPConnect Help (Stuart Tremain 2014)
  6. [WebDNA] TCPConnect Help (Steve Craig 2014)
  7. Re: [WebDNA] TcpConnect Help (Aaron Michael Kaczmarek 2011)
  8. Re: [WebDNA] TcpConnect Help (Kenneth Grome 2011)
  9. [WebDNA] TcpConnect Help (Alex McCombie 2011)
I've struggled with this before only to realize that its as simple as changing this HTTP/1.1 to HTTP/1.0 -or- add this header.. Connection: close the 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 well On 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.
> method='post' >> action='http://click.po155.com/OptIn.aspx?OptinFormID=2& >> 26241823=4169' onsubmit='return validate2();'> >> >> >> >> >> >>
>> state> type='text' name='field6' />
Email Address> name='UEmail'/>
> valign="top" colspan="2">> name='submit' value='Submit'/>
>>
>> >> 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)