Questions tagged [400]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
341 views

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:...
user avatar
  • 111
0 votes
0 answers
215 views

Bad Request Error Only in chrome Browser : Apache Logs , BufferOverflowException

List item Background, My firm uses apache http server with apache tomcat, here apache http server acts as a reverse proxy only, we have one apache and one tomcat instance, Bad Request Error is only ...
user avatar
0 votes
0 answers
48 views

HTTP redirect not working

My website: https://www.louiswebsdale.co.uk/ keeps giving the "400 bad request invalid header" error when trying to visit it without the https. So www.louiswebsdale.co.uk or http://www....
user avatar
1 vote
1 answer
295 views

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 ...
user avatar
0 votes
0 answers
178 views

How to fix 400 Bad Request by php coding

Last weekend our server/app got bugged and some of your visitor are now getting Error 400 Bad Request everytime they visit our website. I know this error was caused by malformed cookies and everything ...
user avatar
1 vote
0 answers
295 views

Apache custom error pages for 400 and 408

I have created a number of custom error pages and I have this in global configuration so it will apply to all vhosts: Alias /common /var/www/common ErrorDocument 400 /common/400.shtml ErrorDocument ...
user avatar
1 vote
0 answers
45 views

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. <my.ip> - - [13/Sep/2020:19:33:40 +0000] "POST /path/path HTTP/1.1" 200 53 <my.ip> - - ...
user avatar
  • 41
1 vote
0 answers
1k views

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 ...
user avatar
  • 11
-1 votes
2 answers
762 views

Proving DNS/Network issues on client network

Problem 1 of ~150 server clients (in different locations and with different network setups) is not redirected through my apache service. I need to know where the problem is but can't figure it out. ...
user avatar
  • 11
2 votes
3 answers
581 views

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

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 ...
user avatar
  • 21
1 vote
3 answers
1k views

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 ...
user avatar
  • 11
0 votes
1 answer
1k views

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 ...
user avatar
  • 597
0 votes
1 answer
33 views

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 ...
user avatar
7 votes
1 answer
4k views

Lot of 400 errors in the Apache logs

We have a hard time debugging 400 errors on our website. We have a lot of errors like this: 10.0.0.1 - - [08/Oct/2018:14:28:07 +0200] "GET /les-news/palmares/detail/article/la-lettre-de-motivation-...
user avatar
  • 207
2 votes
0 answers
237 views

EventStore Bad Request (Invalid host) working in cluster

I'm using EventStore with the following configuration : --- RunProjections: All ClusterSize: 2 Db: /opt/eventstore/db DiscoverViaDns: false GossipSeed: 10.0.100.11:1113 GossipOnExt: false Log: /opt/...
user avatar
-1 votes
2 answers
345 views

nginx staging rewrite http to https with port number

I'm getting a 400 bad request. This is the config code. file: staging.rewrites if ($scheme = http) { return 301 https://$host:[port]$request_uri; } Does anyone know if this is a valid rewrite?
user avatar
1 vote
1 answer
5k views

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 ...
user avatar
  • 113
2 votes
1 answer
837 views

Proxy websocket with parameters through proxypass/proxypassmatch without a VirtualHost

I have been trying for the longest time to proxy a websocket with it's sid variable to the localhost service, that is serving it. I have looked far and beyond for a solution (including a lot of the ...
user avatar
0 votes
1 answer
592 views

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

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 "...
user avatar
0 votes
1 answer
2k views

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 ...
user avatar
0 votes
1 answer
3k views

IIS 8.5 throwing 400 Bad request in Production when calling REST WS using Post method

I've a strange issue. Let me explain in details below step by step: I've a vendor developed REST WS (Made using WCF) for synchronizing data with MS CRM. I've developed a windows service, which ...
user avatar
2 votes
1 answer
2k views

Nginx reverse proxy issue for 4xx response code

I have configured nginx to proxy the request that comes to the port 8000, to route to a different ip. In the configuration i also add Access-control-Allow-Origin header. This works fine if server is ...
user avatar
  • 123
2 votes
1 answer
3k views

Nginx Docker 400 Bad Request

I am currently trying to host nexus as a private registry for docker images within my organisation . My nginx configuration are as below . user nginx; worker_processes 1; error_log /var/log/nginx/...
user avatar
  • 21
2 votes
1 answer
3k views

http headers vanish when proxying http errors through nginx

I'm using nginx as TLS terminator in front of an Apache 2.4 server. I'm using add_header X-Content-Type-Options nosniff; in nginx to add this header to every response. If the HTTP status code ...
user avatar
  • 103
1 vote
1 answer
2k views

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 ...
user avatar
0 votes
1 answer
728 views

Accept custom header field "Content type" in apache

My app was sending request with header field "Content type" [sic] and value "form-data" [sic] to the server. Although it seems wrong - it seems it was causing no problem until couple of days ago. Then ...
user avatar
  • 103
0 votes
0 answers
321 views

websocketserver behind nginx and apache

How is it possible to establish a websocket connection through nginx and apache, where both act as reverse proxies. The system is setup with apache on the main host and a tornado webapplication in a ...
user avatar
  • 1
1 vote
0 answers
143 views

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 ...
user avatar
  • 11
4 votes
4 answers
29k views

HAProxy returns Bad Request (Invalid Host) for seemingly no reason

I've been trying to test a setup that looks like this: Website: Http GET Request -> Nginx -> HAProxy -> .Net application I've placed Nginx and HAProxy on the same Debian machine. However, HAProxy ...
user avatar
  • 213
5 votes
1 answer
11k views

request failed: error reading the headers

Recently I moved my servers from one provider to the other and started to get this messages in apache error log: "request failed: error reading the headers" Example from the error and corresponding ...
user avatar
0 votes
1 answer
1k views

nginx proxy_pass receive content/status headers when http 4xx

Was having some trouble as chronicled here - https://stackoverflow.com/questions/22570550/play-2-2-1-simpleresult-4xx-response-body-possible-via-cors-xhr But I didn't focus on nginx since the 200 OK ...
user avatar
  • 199
16 votes
1 answer
21k views

nginx Request line too large

I'm getting the error: Bad Request Request Line is too large (6060 > 4094) When I access the a specific url on my server like this: /api/categorize?packages=package1,package2,...packageN On ...
user avatar
1 vote
1 answer
560 views

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 ...
user avatar
  • 11
0 votes
1 answer
1k views

Strange 400 error with IIS 7.5 and a webservice?

Ok, this is a longshot. I have been pondering this for hours. I have no clue how to solve this. But maybe someone here can recognize the problem and point me to right direction. I have an IIS 7.5 ...
user avatar
  • 127
0 votes
1 answer
2k views

Why isn't IIS logging my 400, or What is responding with 400?

I have a web application which makes a localhost webservice call to itself and is getting a 400 Bad Request back. The problem is that I'm having trouble tracking down the cause of the 400 since I can'...
user avatar
  • 171
3 votes
2 answers
5k views

How can I track down the cause of a 400: Bad Request web service call to localhost?

This is on Windows Server 2003 Running IIS. I have an ASP.NET 2.0 website which is also hosting some web services. When the site makes a webservice call to itself (localhost), I get back a 404: Bad ...
user avatar
  • 171
3 votes
0 answers
328 views

SVN checkout returns 400 error

I'm trying to download the http://code.opencv.org/svn/opencv/trunk/ repository of all of the OpenCV source code - as specified in an OpenCV installation tutorial. In the tutorial, the repository ...
user avatar
  • 151
5 votes
1 answer
3k views

How to make Apache return a custom page on a 400 error with malformed host headers?

I think what I was asking for was a bit hard to understand, so, I am trying to make it simpler... I need my server to have a custom 400 error page when it receives a request with a malformed host ...
user avatar
0 votes
1 answer
1k views

Apache returns 400 instead of 200 at DocumentRoot

I am seeing a lot of these odd entries in my Apache access log: SOME IP ADDRESS - - [23/Feb/2012:03:06:38 -0800] "GET /" 400 460 "-" "-" If I try to access the Apache document root, I get: MY IP ...
user avatar
  • 113
0 votes
1 answer
2k views

Intermittent 400 Bad Request Errors in IIS

We recently upgraded our infrastructure to Windows server 2008 R2 (64 bit), and are now getting intermittent 400 errors on post. I set up failed request tracing, and have caught a couple of them. ...
user avatar
5 votes
3 answers
2k views

How often should we expect 400 Bad Request?

We run an Apache2 web server which has somewhere in the vicinity of 2-3 million pages served every day (only HTML+CSS+Javascript, images and other content is served with Lighttpd). Our daily logwatch ...
user avatar
2 votes
1 answer
3k views

Uploading file > 1 MB on Django admin gives 400 Bad Request response

I have a small Django (1.2.x) project deployed on Apache (2.x) via mod_wsgi (3.x). In the admin, if I upload a file < 1MB, I can get it through; however, for a file, say, 1.2MB in size, I get a 400 ...
user avatar
  • 473
0 votes
1 answer
1k views

Http 400 'Bad Request' and win32status 1450 when larger messages are sended to a WCF service

we sometimes receive Http 400 bad request resultcodes when posting a large file (10mb) to a WCF service hosted in IIS 6. We can reproduce this using SOAP UI and it seems that it is unpredictable when ...
user avatar
1 vote
2 answers
4k views

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%...
user avatar
  • 185