[WebDNA] Correct returnraw syntax?
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 106827
interpreted = N
texte = Isn't this the way we're supposed to use returnraw to make a browser learn that a page has been moved, and then redirect to that page's new location:[ReturnRaw]HTTP/1.0 302 Found[unurl]%0D%0A[/unurl]Location: http://www.mywebsite.com/html/index.tpl[unurl]%0D%0A[/unurl][unurl]%0D%0A[/unurl][/ReturnRaw]If so, why doesn't it redirect? All this does is display this on my web page:Location: http://www.mywebsite.com/html/index.tplSincerely,Kenneth Grome> 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.
> >> > >> 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> > ---------------------------------------------------------> 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:
Isn't this the way we're supposed to use returnraw to make a browser learn that a page has been moved, and then redirect to that page's new location:[returnraw]HTTP/1.0 302 Found[unurl]%0D%0A[/unurl]Location: http://www.mywebsite.com/html/index.tpl[unurl]%0D%0A[/unurl][unurl]%0D%0A[/unurl][/ReturnRaw]If so, why doesn't it redirect? All this does is display this on my web page:Location: http://www.mywebsite.com/html/index.tplSincerely,Kenneth Grome> 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.> >> > >> 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> > ---------------------------------------------------------> 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
Kenneth Grome
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:
Date Time Oddness (1999)
Stumpted Again (1997)
Re:No Data (1997)
syntax question, not in online refernce (1997)
math on date? (1997)
writefile to create static pages (2003)
Re2: frames & carts (1997)
WebCat2 as a chat server? (1997)
Locking up with WebCatalog... (1997)
Click-through/Referral tracking solution needed (2000)
Read and Write (2001)
Document Contains No Data! (1997)
Bug Report, maybe (1997)
test (2003)
SKU (1997)
Re[2]: Wierd problem with 3.08 WIN Version (2000)
[ot] Any One Want A WebDNA Billing Program? (2003)
URGENT: Can't email orders - HELP #2 (1998)
Max Record length (1997)
Dynamic Lists (2005)