Welcome! Log In Create A New Profile

Advanced

Re: 400 Bad request

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

Hi there,

> 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.

% is an escape character within a url. It must be followed by exactly
two hex-characters, or the url is invalid and the request is bad.

> GET /download-%27.07%%27.html?frame=1 HTTP/1.1

The first one there is %27 and decodes to '.

The second one is %%2 and is invalid.

> What's wrong with them?

They're broken.

Whatever is generating that url should be fixed so that it is properly
encoded/escaped.

If the filename is download-'.07%'.html, it should appear in the url
as download-%27.07%25%27.html

All the best,

f
--
Francis Daly francis@daoine.org

_______________________________________________
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: 110
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 466 on July 09, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready