Questions tagged [400]

400 is the HTTP error code for "Bad Request".

HTTP error code 400 means the request cannot be fulfilled due to bad syntax.

48 questions
2
votes
0 answers

ErrorDocument 400 redirect to different URL without rewrite

I want to implement a custom Error 400 page on my website tikolu.net, to a file called 400.php in a folder called error. The first thing I tried was to simply place ErrorDocument 400 /error/400.php into my .htaccess file. This doesn't work because…
Tikolu
  • 21
  • 3
2
votes
3 answers

Why am I getting a 400 BAD REQUEST error for simple GET request?

I'm using an old programming language (Adobe's Extendscript). It has a simple Socket object to send TCP/IP requests. The following lines always used to work for me: reply = ""; conn = new Socket; if (conn.open ("www.freelancebookdesign.com:80")) { …
Ariel
  • 21
  • 3
1
vote
3 answers

Prevent logging of 400 errors in Apache httpd

Somebody is sending a bunch of garbage data to port 80 on my Apache server, causing tons of 400 Bad Request errors. There's nothing I can really do about it, unfortunately, but can I at least prevent it from filling up my logs? I can't find a way to…
chowbok
  • 11
  • 3
1
vote
1 answer

400 Bad Request at request, http://localhost/favicon.ico

I'm new to nginx, and my site was just deployed to Digital Ocean. When I try to open this site from a browser, it returns a 400 Bad Request.. Request Header or Cookie Too Large error message. The developer console indicates that it has to do with…
Jason O.
  • 113
  • 1
  • 5
1
vote
1 answer

How to diagnose error 400, bad request, after upgrading Apache?

I'm the author of an open-source client-server application that seems to have stopped working on my own server after I upgraded to Apache 2.2.22. I now get http error 400, bad request, on all my client's POST requests. I get nothing in the apache…
Ben Crowell
  • 135
  • 8
1
vote
0 answers

Hosting emoji domains quandary

I am trying to make my IIS8.5 to process IDN domains, including the domains with emoji characters. Since the application runs dynamic hostnames I bind by IP and protocol only. The IIS8.5 does fine job to do IDN and Punycode reconstruction but only…
Romy
  • 11
  • 2
1
vote
1 answer

Error 400 on LAN access

Probably a stupid question / problem, but when I try and access my site via it's domain name from inside it's LAN (requesting via the local IP address works fine though), I get an error 400. A while back, when requesting my site from it's LAN via…
maxp
  • 11
  • 2
1
vote
2 answers

Redirecting requests that would result in an HTTP 400 (Bad Request) error (Apache 2.2)

Due to a security vulnerability in Wordpress, a bunch of my posts got renamed to something like: http://**MYSITE**/2008/08/21/**POSTNAME**/%&%28%7B$%7Beval%28base64_decode%28$_SERVER%5BHTTP_EXECCODE%5D%29%29%7D%7D%7C.+%29&%/ I've since fixed the…
inxilpro
  • 185
  • 2
  • 6
1
vote
0 answers

How to figure out what is bad about a 400 bad request, on an Apache-server

The overarching question How do I see what is 'bad' about a 400 - bad request? Info about the error When I click around the WordPress-backend, then between 3 and 7 requests (out of 95-100) give me a: 400 - Bad request-error, upon every page load.…
Zeth
  • 121
  • 2
  • 7
1
vote
1 answer

In Nginx How to handle HTTP requests without the leading slash "/"?

I have an Nginx proxy in front my application. I recently learned that, HTTP requests can be made without a leading slash also. For Example: POST acme/_search HTTP/1.1 In cases like this, Nginx always returns 400 Bad Request. I would like to handle…
1
vote
0 answers

Tomcat sends response 400 out of nowhere

I'm running a server on Ubuntu 18.04 with Tomcat and I saw the following in the access log. - - [13/Sep/2020:19:33:40 +0000] "POST /path/path HTTP/1.1" 200 53 - - [13/Sep/2020:19:33:41 +0000] "POST /path/path HTTP/1.1" 200…
Amos
  • 141
  • 7
0
votes
1 answer

http error 400 Bad Request on name but IP address works

I have got a Vodafone "EasyBox 904 xDSL" router which has a LAN facing administration interface on http (not https) on port 80. I can access it fine when I use http://[ip of the router] For convenience I added an entry into our local DNS server…
dummzeuch
  • 607
  • 1
  • 9
  • 20
0
votes
1 answer

User gets error 400 on intranet sites only

I had the user log into multiple machines on different domains, both virtual and physical, and the issue persists. When I log into those same machines I get to the sites without issue. I checked the users group membership in AD and he has all of our…
Robert S
  • 1
  • 1
0
votes
1 answer

Ubuntu 16.04 public wifi connection failure "The request is invalid due to malformed syntax or invalid data."

I use Ubuntu 16.04 on my laptop and I can't connect public library's free wifi. First, It shows this error when I try to open HTTP pages: Open me in new tab When I try to open https pages, it says "This site can’t be reached"…
0
votes
1 answer

HAProxy - Error 408 - randomly

Proxy version 1.7.9 2017/08/18 Simple GET requests made within script tags in the index file are getting dropped randomly, and instead the custom 400 error html is returned with the status code of 200. Sometimes 2-3 times in a row, sometimes not…
Király István
  • 377
  • 4
  • 10