[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:
Not really WebCat- (1997)
Extra equals signs with IE? (More debugging questions...) (1997)
Shopping carts and reloading pages (1997)
BR (1997)
[OT] degree symbol (2003)
Secure server question (1997)
WebCat 4.0 & WebMerchant (2000)
[WebDNA] Server version 8.6 ? (2018)
Creating main- and sub-category search (1997)
WebCat2b15MacPlugin - showing [math] (1997)
expired beta (1997)
Pretty Easy I bet (2000)
WEBCAT HIERARCHY (1999)
SIMS setup (1998)
carriage returns in data (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
Reversed words (1997)
WebCat2.0 acgi vs plugin (1997)
Prices Dropped (1998)
Web Catalog Instability (2000)