Questions tagged [400]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
31 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....
1
vote
1answer
53 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 ...
0
votes
0answers
40 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 ...
1
vote
0answers
50 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 ...
1
vote
0answers
33 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> - - ...
1
vote
0answers
493 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 ...
-1
votes
2answers
752 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. ...
2
votes
3answers
222 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 ...
0
votes
3answers
584 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 ...
0
votes
1answer
795 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 ...
0
votes
1answer
29 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 ...
7
votes
1answer
3k 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-...
2
votes
0answers
222 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/...
-1
votes
2answers
338 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?
1
vote
1answer
4k 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 ...
2
votes
1answer
681 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 ...
0
votes
1answer
564 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 "...
0
votes
1answer
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 ...
0
votes
1answer
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 ...
2
votes
1answer
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 ...
2
votes
1answer
2k 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/...
2
votes
1answer
2k 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 ...
1
vote
0answers
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 ...
0
votes
1answer
667 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 ...
0
votes
0answers
305 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 ...
1
vote
0answers
135 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 ...
4
votes
4answers
24k 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 ...
5
votes
1answer
10k 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 ...
0
votes
1answer
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 ...
15
votes
1answer
19k 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 ...
1
vote
1answer
523 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 ...
0
votes
1answer
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 ...
0
votes
1answer
1k 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'...
3
votes
2answers
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 ...
3
votes
0answers
325 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 ...
5
votes
1answer
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 ...
0
votes
1answer
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 ...
0
votes
1answer
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. ...
5
votes
3answers
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 ...
2
votes
1answer
2k 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 ...
0
votes
1answer
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 ...
1
vote
2answers
3k 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%...