Questions tagged [http-status-code-400]

400 Bad Request. Add this tag to a question if your requests receive this answer.

The request could not be understood by the server due to malformed syntax. The client should not repeat the request without modifications.

See also RFC2616.

806 questions
0
votes
0 answers

vb.net WebRequest Post giving 400 Bad Request when containing ampersand

I'm running into an issue with WebRequest when the POST contains an ampersand. When attempting to get the response, I am being thrown a 400 Bad Request error. I've tried HttpServerUtility.UrlEncode on the postData variable, but that throws an…
0
votes
1 answer

Varnish and digest authentication resulting in uri mismatch

I have a live website and staging version set up on the same virtual server. The live site uses Varnish and no authentication, the staging site bypasses Varnish but uses digest authentication. In my VCL file I have this: sub vcl_recv { if…
toby1kenobi
  • 1,609
  • 1
  • 14
  • 24
0
votes
0 answers

Why does this code not work with an older / limited version of the .NET Framework (with just the minimum necessary adjustments)?

I have code that works with .NET 4.5.1: private void button20_Click(object sender, EventArgs e) { String fullFilePath = @"C:\HoldingPattern\INV_0000003_20140818135513_1725.xml"; string justFileName =…
0
votes
0 answers

Why would I get, "The remote server returned an error: (400) Bad Request" with this code?

I was first getting "Unable to connect to the remote server" but then remembered that I couldn't use "localhost" from a handheld device. I swapped that out with the name of the machine like so: String uri =…
0
votes
1 answer

What should be the Http Server code for Validation Error happening in server?

When an action is called by the client to server say POST/PUT, there would be some validations happening in the data that needs to be processed. But that data doesn't comes as a request, data would be fetched from DB (coz the endpoint clearly knows…
xxxxx
  • 1,918
  • 2
  • 17
  • 22
0
votes
0 answers

My current domain name gives a 400 Bad Request and other times loads just fine

So I some how got suckered into setting up a server on Digital Ocean and I am not quite qualified to do so but I have to figure it out. I am using Laravel Forge to manage it and when I originally created it, it worked fine if I went to…
Ellenbrook
  • 105
  • 1
  • 11
0
votes
1 answer

JSON PUT returns statuscode 400

I HAVE to make a PUT request but no matter what I try I get the statuscode 400 which means "The request cannot be fulfilled due to bad syntax." I can't figure out where the problem is. Here's the request part (using knockoutjs and…
Cupple Kay
  • 155
  • 2
  • 14
0
votes
0 answers

Calling a REST webservice under RP

I try to call a web service who is under a RP. In local, it works : But when it is déployed, i got this : Here is a capture with Fiddler : Here is my web.config :
Xavier W.
  • 1,270
  • 3
  • 21
  • 47
0
votes
1 answer

CXF REST Bean Validation gives a 404 Not Found instead of 400 Bad Request

I have a CXF RS Rest Resource which looks like this : public class SomeRestResource { @GET @Produces(MediaType.APPLICATION_JSON) @Path("path") public Response getResource( @DecimalMin(value = "0.01", message="Weight should…
0
votes
0 answers

File download fails in IE10 but works in chrome - HTTP 400 error

We have a JAVA web application and recently we migrated to a new software. Earlier we used WebSphere 7 as a application server but after migration we moved to Tomcat 7. In regression testing we found a issue with PDF download on one of the web…
hanumant
  • 1,091
  • 4
  • 15
  • 27
0
votes
1 answer

Getting (400) Bad Request error while using GetAttachment command to download an attachment from Exchange Server 2010

Following is my request header : POST [Server]/Microsoft-Server-ActiveSync?Cmd=GetAttachment&AttachmentName=5%3a1%3a0&User=[user]&DeviceId=[DeviceId]&DeviceType=[DeviceType] HTTP/1.1 Content-Type: application/vnd.ms-sync.wbxml Authorization: Basic…
user3493833
  • 271
  • 2
  • 5
0
votes
0 answers

HttpResponse status code 400 android

I am sending a GET request to the server when I login. I am expecting a 200 response, but I get a 400 status code when I login. Later if I exit the app and relaunch it, I get a 200 status code. What I want to do: I login to a website. I get a…
0
votes
1 answer

Returning HTTP status 400 from Spring AOP based around Aspect

I have an interesting problem with me (at least it is a problem from my current point of view). I have a RESTful web service that is exposing an interface. In our environment, we use annotation to decorate the request handlers, e.g.…
sgsi
  • 382
  • 1
  • 8
  • 18
0
votes
3 answers

curl 404 bad request

I am wrting a script to check whether site down or not and using following php code to $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user '); curl_setopt($ch,…
Cody
  • 2,480
  • 5
  • 31
  • 62
0
votes
1 answer

PHP header location to https

In my web app you get redirected after successful login via header('Location: https://domain.com/loggedin') but when its finished redirecting I get to following URL http://domain.com:443/loggedin which give (of course) following error 400 Bad…
Deproblemify
  • 3,340
  • 5
  • 26
  • 41