[WebDNA] lighttpd problem with returnraw http header

This WebDNA talk-list message is from

2018


It keeps the original formatting.
numero = 113970
interpreted = N
texte = 1570 --Apple-Mail=_941D3ED2-A177-40FA-B61A-7A8C0C7BEE45 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi everybody, We use lighttpd with webdna 8. We have set server.error_handler_404 =3D =E2=80=9Cdispatch.dna=E2=80=9D = - Now all request go to dispatch.dna (except static files (images, css, = js,=E2=80=A6)) In dispatch.dna webdna looks up [thisurl] in the database (and does lots = of other stuff) and decides which HTTP response to return = (200,401,404,301,302,=E2=80=A6) with returnraw (see code below). It has all worked fine till lighttpd 1.4.45, now with 1.4.46 something = changed: Now it works kinda for 404,301,302. It does not with 200 (I get 2 headers in the http response, only the = first is used, the second is shown as plain text, but then the = content-length is not correct=E2=80=A6 - idk). Also 401: The server answers with a 401 but does not deliver my = html-error-page but delivers the standard html =E2=80=9C401 - = Unauthorized=E2=80=9D... Do you have the same problem? Is it a bug, or it just now works like = this? Ist there any =E2=80=9Cfix=E2=80=9D on the horizon for webdna or = is it a lighttpd-thing? Thanks Noah [text show=3Df]CRLF=3D[unurl]%0D%0A[/unurl][/text][!] [/!][function name=3DShow301][!] [/!][returnraw][!] [/!]]result=3DHTTP/1.1 301 Moved Permanently[CRLF][!] [/!]Location: https://google.com[CRLF][CRLF][!] [/!][/returnraw][!] [/!][/function][!] [/!][function name=3DShow302][!] [/!][returnraw][!] [/!]result=3D HTTP/1.1 302 Found[CRLF][!] [/!]Location: https://google.com[CRLF][CRLF] [/!][/returnraw][!] [/!][/function][!] [/!][function name=3D Show404][!] [/!][returnraw][!] [/!]Status: 404 Not Found[CRLF][!] [/!]Content-type: text/html[CRLF][CRLF][!] [/!][include file=3Derror_page.inc][!] [/!][/returnraw][!] [/!][/function][!] [/!][function name=3D Show401][!] [/!][returnraw] [/!]HTTP/1.1 401 Unauthorized[CRLF][!] [/!]Content-type: text/html[CRLF][CRLF][!] [/!][include file=3Dlogin_page.inc][!] [/!][/returnraw][!] [/!][/function][!] [/!][function name=3D Show200][!] [/!][returnraw][!] [/!]HTTP/1.1 200 OK[CRLF][!] [/!]Status: OK[CRLF][!] [/!]Set-Cookie:mycookie=3Dcookievalue;Path=3D/[CRLF][!] [/!]Content-type: text/html[CRLF][CRLF][!] [/!][include file=3Dcontent_page.inc][!] [/!][/returnraw][!] [/!][/function] --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail=_941D3ED2-A177-40FA-B61A-7A8C0C7BEE45 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi everybody,

We use lighttpd with webdna = 8.
We have = set server.error_handler_404 =3D =E2=80=9Cdispatch.dna=E2=80=9D - = Now all request go to dispatch.dna (except static files (images, css, = js,=E2=80=A6))
In dispatch.dna webdna looks up [thisurl] in the = database (and does lots of other stuff) and decides which HTTP response = to return (200,401,404,301,302,=E2=80=A6) with returnraw (see code = below).

It has all = worked fine till lighttpd 1.4.45, now with 1.4.46 something = changed:
Now it works = kinda for 404,301,302.
It = does not with 200 (I get 2 headers in the http response, only the first = is used, the second is shown as plain text, but then the content-length = is not correct=E2=80=A6 - idk).
Also 401: The server answers with a 401 but does not deliver = my html-error-page but delivers the standard html =E2=80=9C401 - = Unauthorized=E2=80=9D...

Do you have the same problem? Is it a bug, or it just now = works like this? Ist there any =E2=80=9Cfix=E2=80=9D on the horizon for = webdna or is it a lighttpd-thing?

Thanks
Noah


[text = show=3Df]CRLF=3D[unurl]%0D%0A[/unurl][/text][!]
[/!][function name=3DShow301][!]
= [/!][returnraw][!]
[/!]]result=3DHTTP/1.1 = 301 Moved Permanently[CRLF][!]
= [/!]Location: https://google.com[CRLF][CRLF][!]
[/!][/returnraw][!]
[/!][/function][!]
[/!][function name=3DShow302][!]
= [/!][returnraw][!]
= [/!]result=3D HTTP/1.1 302 Found[CRLF][!]
= [/!]Location: https://google.com[CRLF][CRLF]
= [/!][/returnraw][!]
[/!][/function][!]
[/!][function name=3D Show404][!]
= [/!][returnraw][!]
= [/!]Status: 404 Not Found[CRLF][!]
[/!]Content-type: = text/html[CRLF][CRLF][!]
= [/!][include = file=3Derror_page.inc][!]
[/!][/returnraw][!]
[/!][/function][!]
[/!][function = name=3D Show401][!]
= [/!][returnraw]
[/!]HTTP/1.1 401 = Unauthorized[CRLF][!]
[/!]Content-type: = text/html[CRLF][CRLF][!]
= [/!][include file=3Dlogin_page.inc][!]
= [/!][/returnraw][!]
[/!][/function][!]
[/!][function = name=3D Show200][!]
[/!][returnraw][!]
[/!]HTTP/1.1 200 OK[CRLF][!]
[/!]Status: OK[CRLF][!]
[/!]Set-Cookie:mycookie=3Dcookievalue;Path=3D/[CRLF][!]
[/!]Content-type: = text/html[CRLF][CRLF][!]
= [/!][include file=3Dcontent_page.inc][!]
[/!][/returnraw][!]
[/!][/function]


= --Apple-Mail=_941D3ED2-A177-40FA-B61A-7A8C0C7BEE45-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] lighttpd problem with returnraw http header (Brian Harrington 2018)
  2. Re: [WebDNA] lighttpd problem with returnraw http header (Kenneth Grome 2018)
  3. Re: [WebDNA] lighttpd problem with returnraw http header (Noah Valley 2018)
  4. Re: [WebDNA] lighttpd problem with returnraw http header (Stuart Tremain 2018)
  5. Re: [WebDNA] lighttpd problem with returnraw http header (Kenneth Grome 2018)
  6. [WebDNA] lighttpd problem with returnraw http header (Noah Valley 2018)
1570 --Apple-Mail=_941D3ED2-A177-40FA-B61A-7A8C0C7BEE45 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi everybody, We use lighttpd with webdna 8. We have set server.error_handler_404 =3D =E2=80=9Cdispatch.dna=E2=80=9D = - Now all request go to dispatch.dna (except static files (images, css, = js,=E2=80=A6)) In dispatch.dna webdna looks up [thisurl] in the database (and does lots = of other stuff) and decides which HTTP response to return = (200,401,404,301,302,=E2=80=A6) with returnraw (see code below). It has all worked fine till lighttpd 1.4.45, now with 1.4.46 something = changed: Now it works kinda for 404,301,302. It does not with 200 (I get 2 headers in the http response, only the = first is used, the second is shown as plain text, but then the = content-length is not correct=E2=80=A6 - idk). Also 401: The server answers with a 401 but does not deliver my = html-error-page but delivers the standard html =E2=80=9C401 - = Unauthorized=E2=80=9D... Do you have the same problem? Is it a bug, or it just now works like = this? Ist there any =E2=80=9Cfix=E2=80=9D on the horizon for webdna or = is it a lighttpd-thing? Thanks Noah [text show=3Df]CRLF=3D[unurl]%0D%0A[/unurl][/text][!] [/!][function name=3DShow301][!] [/!][returnraw][!] [/!]]result=3DHTTP/1.1 301 Moved Permanently[CRLF][!] [/!]Location: https://google.com[CRLF][CRLF][!] [/!][/returnraw][!] [/!][/function][!] [/!][function name=3DShow302][!] [/!][returnraw][!] [/!]result=3D HTTP/1.1 302 Found[CRLF][!] [/!]Location: https://google.com[CRLF][CRLF] [/!][/returnraw][!] [/!][/function][!] [/!][function name=3D Show404][!] [/!][returnraw][!] [/!]Status: 404 Not Found[CRLF][!] [/!]Content-type: text/html[CRLF][CRLF][!] [/!][include file=3Derror_page.inc][!] [/!][/returnraw][!] [/!][/function][!] [/!][function name=3D Show401][!] [/!][returnraw] [/!]HTTP/1.1 401 Unauthorized[CRLF][!] [/!]Content-type: text/html[CRLF][CRLF][!] [/!][include file=3Dlogin_page.inc][!] [/!][/returnraw][!] [/!][/function][!] [/!][function name=3D Show200][!] [/!][returnraw][!] [/!]HTTP/1.1 200 OK[CRLF][!] [/!]Status: OK[CRLF][!] [/!]Set-Cookie:mycookie=3Dcookievalue;Path=3D/[CRLF][!] [/!]Content-type: text/html[CRLF][CRLF][!] [/!][include file=3Dcontent_page.inc][!] [/!][/returnraw][!] [/!][/function] --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail=_941D3ED2-A177-40FA-B61A-7A8C0C7BEE45 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi everybody,

We use lighttpd with webdna = 8.
We have = set server.error_handler_404 =3D =E2=80=9Cdispatch.dna=E2=80=9D - = Now all request go to dispatch.dna (except static files (images, css, = js,=E2=80=A6))
In dispatch.dna webdna looks up [thisurl] in the = database (and does lots of other stuff) and decides which HTTP response = to return (200,401,404,301,302,=E2=80=A6) with returnraw (see code = below).

It has all = worked fine till lighttpd 1.4.45, now with 1.4.46 something = changed:
Now it works = kinda for 404,301,302.
It = does not with 200 (I get 2 headers in the http response, only the first = is used, the second is shown as plain text, but then the content-length = is not correct=E2=80=A6 - idk).
Also 401: The server answers with a 401 but does not deliver = my html-error-page but delivers the standard html =E2=80=9C401 - = Unauthorized=E2=80=9D...

Do you have the same problem? Is it a bug, or it just now = works like this? Ist there any =E2=80=9Cfix=E2=80=9D on the horizon for = webdna or is it a lighttpd-thing?

Thanks
Noah


[text = show=3Df]CRLF=3D[unurl]%0D%0A[/unurl][/text][!]
[/!][function name=3DShow301][!]
[/!]]result=3DHTTP/1.1 = 301 Moved Permanently[CRLF][!]
= [/!]Location: https://google.com[CRLF][CRLF][!]
[/!][/returnraw][!]
[/!][/function][!]
[/!][function name=3DShow302][!]
= [/!][returnraw][!]
= [/!]result=3D HTTP/1.1 302 Found[CRLF][!]
= [/!]Location: https://google.com[CRLF][CRLF]
= [/!][/returnraw][!]
[/!][/function][!]
[/!][function name=3D Show404][!]
= [/!][returnraw][!]
= [/!]Status: 404 Not Found[CRLF][!]
[/!]Content-type: = text/html[CRLF][CRLF][!]
= [/!][include = file=3Derror_page.inc][!]
[/!][/returnraw][!]
[/!][/function][!]
[/!][function = name=3D Show401][!]
[/!]HTTP/1.1 401 = Unauthorized[CRLF][!]
[/!]Content-type: = text/html[CRLF][CRLF][!]
= [/!][include file=3Dlogin_page.inc][!]
= [/!][/returnraw][!]
[/!][/function][!]
[/!][function = name=3D Show200][!]
[/!][returnraw][!]
[/!]HTTP/1.1 200 OK[CRLF][!]
[/!]Status: OK[CRLF][!]
[/!]Set-Cookie:mycookie=3Dcookievalue;Path=3D/[CRLF][!]
[/!]Content-type: = text/html[CRLF][CRLF][!]
= [/!][include file=3Dcontent_page.inc][!]
[/!][/returnraw][!]
[/!][/function]


= --Apple-Mail=_941D3ED2-A177-40FA-B61A-7A8C0C7BEE45-- . Noah Valley

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:

WebCatalog for Dummies p.1 (2000) [BULK] [WebDNA] Version 7 Config problem (2011) Template Security error (1997) Bug Report, maybe (1997) PC Cookie Problem? (2003) Setting up shop (1997) Longer .extensions with Windows? (1998) [WebDNA] Imagemagick (2018) WebSite vs. IIS (1997) New index for docs (1997) Is there an easier way? (1998) removing programming logic white space (2003) HomePage Caution (1997) WC2b15 File Corruption (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) Multiple Pulldowns (1997) Okay, I give up... (1999) [format xs] freeze (1997) Webten 4.0 Plugin Question (2000) Help name our technology! (1997)