Welcome! Log In Create A New Profile

Advanced

400 Bad Request

November 22, 2016 06:00AM
Nginx ругается на такой запрос:

"GET http://ankerch-crimea.ru?page=home HTTP/1.1" 400

Я так понимаю из-за того, что нет слеша после домена, но по спецификации такой вариант возможен, если в нем нет логина-пароля (правда я дальше википедии не проверял):

scheme:[//[user:password@]host[:port]][/]path[?query][#fragment]

A path, which contains data, usually organized in hierarchical form, that appears as a sequence of segments separated by slashes. Such a sequence may resemble or map exactly to a file system path, but does not always imply a relation to one. The path must begin with a single slash (/) if an authority part was present, and may also if one was not, but must not begin with a double slash.

Браузеры такую ситуацию обрабатывают, сами добавляют слеш. А вот если из кода делать запрос, то напарываешься на 400
Subject Author Posted

400 Bad Request

nerjin November 22, 2016 06:00AM

Re: 400 Bad Request

Maxim Dounin November 22, 2016 08:56AM

Re: 400 Bad Request

nerjin November 23, 2016 05:27AM

Re: 400 Bad Request

Maxim Dounin November 23, 2016 09:58AM

Re: 400 Bad Request

nerjin November 23, 2016 11:25AM

Re: 400 Bad Request

Maxim Dounin November 24, 2016 07:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready