[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:

Damn actions/links...... (2001) default image if image in code not available (2003) IP address & domain name problem (2003) URGENT! ACGI Stopped!!!! (1997) TCPSEND (1999) pc (1997) [WebDNA] How to code a 301 redirect (2008) Great product and great job ! (1997) Re2: frames & carts (1997) Automatic POST arg sending? (1998) Locking up with WebCatalog... (1997) [object] Tag & WebDNA Support (2005) PCS Frames (1997) No. of items in shopping cart (2000) two unique banners on one page (1997) long list formatted in a table (2004) RE: Languages (1997) Multiple cart additions (1997) Re[2]: Putting a page between checkout and invoice (1999) Loosing Quantity (2000)