Welcome! Log In Create A New Profile

Advanced

Re: 400 Bad request

Maxim Dounin
September 14, 2011 07:14AM
Hello!

On Wed, Sep 14, 2011 at 06:48:25AM -0400, coviex wrote:

> Hi,
>
> Having problems with urls containing percent sign. Most of them return
> 400 and don't even appear neither in error.log nor in access.log.
>
> GET /download-%27.07%%27.html?frame=1 HTTP/1.1
> Host: www.my.eu
> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20100101
> Firefox/6.0 FirePHP/0.6
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip, deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Connection: keep-alive
> x-insight: activate
>
> HTTP/1.1 400 Bad Request
> Server: nginx/1.0.5
> Date: Wed, 14 Sep 2011 10:36:24 GMT
> Content-Type: text/html
> Content-Length: 172
> Connection: close
>
>
> What's wrong with them?

They aren't valid.

http://tools.ietf.org/html/rfc3986#section-2.4

Because the percent ("%") character serves as the indicator for
percent-encoded octets, it must be percent-encoded as "%25" for that
octet to be used as data within a URI.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

400 bad request

snacktime June 10, 2009 02:03AM

Re: 400 bad request

Dave Cheney June 10, 2009 04:33AM

Re: 400 bad request

snacktime June 10, 2009 02:13PM

Re: 400 bad request

snacktime June 10, 2009 02:39PM

Re: 400 bad request

Eden Li June 10, 2009 03:06PM

Re: 400 bad request

Dave Cheney June 10, 2009 10:47PM

Re: 400 bad request

snacktime June 12, 2009 07:35PM

Re: 400 bad request

Dave Cheney June 12, 2009 09:00PM

Re: 400 bad request

snacktime June 12, 2009 09:44PM

Re: 400 bad request

Dave Cheney June 12, 2009 10:22PM

Re: 400 bad request

snacktime June 13, 2009 06:29PM

Re: 400 bad request

Jim Ohlstein June 13, 2009 07:16PM

Re: 400 bad request

Rob Schultz June 13, 2009 07:19PM

Re: 400 bad request

snacktime June 12, 2009 09:12PM

Re: 400 bad request

Dave Cheney June 12, 2009 09:36PM

Re: 400 Bad request

Maxim Dounin September 14, 2011 07:14AM

Re: 400 Bad request

Francis Daly September 14, 2011 07:14AM

Re: 400 Bad request

Igor Sysoev September 14, 2011 11:32AM

Re: 400 Bad request

coviex September 14, 2011 01:45PM

Re: 400 Bad request

Igor Sysoev September 14, 2011 02:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 144
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready