#95 The server sends 404 response to curl.

Open
opened 1 year ago by anton-tsyganenko · 3 comments

When I my tested website for broken links, I got an error on link to Notabug. I found that the server always responds 404 to curl -I when using https. Other websites work ok.

$ curl -I https://notabug.org
HTTP/1.1 404 Not Found
Date: Tue, 16 Aug 2016 13:44:54 GMT
Strict-Transport-Security: max-age=63072000; includeSubDomains
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Content-Type: text/html; charset=UTF-8
Set-Cookie: lang=en-US; Path=/; Max-Age=2147483647
Set-Cookie: i_like_gogits=942d99c1d2d9d9e2; Path=/; HttpOnly
Set-Cookie: _csrf=aoGpZfECrAFkV5N5C4HfpqQExmM6MTQ3MTM1NTA5NDczNTA3MzM4MQ%3D%3D; Path=/
X-Clacks-Overhead: GNU Terry Pratchett
Vary: Accept-Encoding
When I my tested website for broken links, I got an error on link to Notabug. I found that the server always responds 404 to curl -I when using https. Other websites work ok. ``` $ curl -I https://notabug.org HTTP/1.1 404 Not Found Date: Tue, 16 Aug 2016 13:44:54 GMT Strict-Transport-Security: max-age=63072000; includeSubDomains X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff Content-Type: text/html; charset=UTF-8 Set-Cookie: lang=en-US; Path=/; Max-Age=2147483647 Set-Cookie: i_like_gogits=942d99c1d2d9d9e2; Path=/; HttpOnly Set-Cookie: _csrf=aoGpZfECrAFkV5N5C4HfpqQExmM6MTQ3MTM1NTA5NDczNTA3MzM4MQ%3D%3D; Path=/ X-Clacks-Overhead: GNU Terry Pratchett Vary: Accept-Encoding ```

This appears to be a bug in the 'macron' web framework. I'm seeing if I can work around it with apache.

This appears to be a bug in the 'macron' web framework. I'm seeing if I can work around it with apache.

BTW: The bug is that for HEAD requests you get a 404.

BTW: The bug is that for HEAD requests you get a 404.
zPlus commented 1 month ago

I think this is fixed now

$ curl -I https://notabug.org
HTTP/2 200 
server: nginx/1.12.1
date: Mon, 19 Mar 2018 23:36:56 GMT

I think it can be closed.

I think this is fixed now ``` $ curl -I https://notabug.org HTTP/2 200 server: nginx/1.12.1 date: Mon, 19 Mar 2018 23:36:56 GMT ``` I think it can be closed.
Sign in to join this conversation.
No Milestone
No assignee
3 Participants
Loading...
Cancel
Save
There is no content yet.