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
2 answers

"The remote server returned an unexpected response: (400) Bad Request"

I am totally stumped with this issue I am having at the moment.I have been reading various articles and blogs for the last 2 days and made most of the recommended changes but I'm still having this issue. Basically I am passing an array object as a…
BruceAus
  • 75
  • 1
  • 1
  • 8
0
votes
1 answer

Does JSON always have to match a POJO/Bean and vice versa in spring-mvc Rest?

Every time I call my REST API sending a JSON through PUT, for instance, and there is some different property on it, I got 400 (Bad Request) as a result. Is there any way to configure spring-mvc to ignore no existent properties when JSON and my Class…
0
votes
0 answers

Why am I getting a 400: bad request?

I'm trying to post XML to my Tomcat server from an Android device, but I get zero bytes in the stream. I get a 400 bad request response, but I am not sure what's wrong with it. I can access my web application in a browser from Android and on my…
jsky
  • 2,225
  • 5
  • 38
  • 54
0
votes
1 answer

How to avoid 400 error in spring mvc when binding as java Bean

I'm using spring mvc. In the controller, I want to get parameter as java Bean Order. Order bean has several parameters, one of them is dueDate (java.util.Date). @RequestMapping("/toAddOrder") public ModelAndView addOrder(Order order, BindingResult…
chendu
  • 534
  • 5
  • 10
0
votes
0 answers

Http 400 PUT request using Apache HttpClient

public static void putRequestToPrestashop(String id,String newXML) throws IOException{ final String login = "VNIPG9YYCESFNK0CLXQNIDBJR24WQZ5E"; final String password =""; //DefaultHttpClient has been depricated, use HttpClientBuilder…
0
votes
1 answer

why is urlfetch getting status:400 when URLs contain spaces?

class Crawl(webapp2.RequestHandler): def get(self): from google.appengine.api import urlfetch url = "http://www.example.com/path/to a/page" #URL with a space result = urlfetch.fetch(url) …
Tabrez Ahmed
  • 2,830
  • 6
  • 31
  • 48
0
votes
1 answer

Response 400 (bad request) when invoking WCF service with other user than Administrator

I have a simple WCF service (hosted in Server01) which I've been using with no problems. After installing in this particular server (lets call it ClientServer01), I started to get the response 400. So we have the following two cenarios. Call WCF…
Davi Fiamenghi
  • 1,237
  • 12
  • 28
0
votes
3 answers

Stripe Payment with VB - 400 Bad Request

I'm trying to make a stripe payment work from a VB website. I know, I know, "I should use C#". I can't because the site is already in VB. Nothing I can do about it. Anyway, I have most of it figured out: User clicks submit button with valid…
Travis Heeter
  • 13,002
  • 13
  • 87
  • 129
0
votes
2 answers

.asmx web service - 400 bad request, root element is missing and blank soap message

I have an old .NET 2.0 app connecting to the asmx web service. I need to debug the web service, but when I run it locally, I always receive 400 - Bad Request response. Trace for the web service gave me a little more details - the exception which was…
Chris W.
  • 366
  • 4
  • 15
0
votes
1 answer

Error 400 on some topicId queries with YouTube API V3

I've noticed that the V3 API returns a 400 error for some values of topicId, while it generally works fine. E.g. https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=10&type=video&key={API-KEY}&topicId=%2Fm%2F0k_qlf Error 400:…
0
votes
1 answer

iOS 6 - Error in sending data in HTTPBody with POST method

Till last night the code was working perfectly, but today i am facing a weird problem. NSString *hostStr = [@"My API string" stringByAppendingString: @"/users/login"]; NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init]; [request…
Jay Pandya
  • 507
  • 6
  • 26
0
votes
0 answers

Getting 400 Bad Request erro calling java web service

I am connecting to a java web service from my asp.net app ,but I am getting a 400 Bad request exception. I have added a web reference in my project and using that to connect in the code as follows : client is the web service reference object. …
0
votes
1 answer

Retrieve Google Checkout CSV (no API)

I'm trying to retrieve the Google Checkout report (Download data to spreadsheet (.csv)). Unfortunatly I can't use the API (it's reserved to only UK and US accounts...!) I have a script made with Mechanize and Ruby but I have an error :…
Mathieu Mahé
  • 2,647
  • 3
  • 35
  • 50
0
votes
1 answer

Twitter widget returning 400 bad request error

All of a sudden, my Twitter widget on my website is not showing any tweets. I've checked my console log and it's returning a 400 bad request error. This was working fine only an hour ago! I have been working on this page today and probably refreshed…
ShadowStorm
  • 853
  • 4
  • 10
  • 23
0
votes
1 answer

HTTP/1.1 status headers, when to use which?

Okay, I am working on an admin panel right now, so I came across stumbling, kind of. Form: http://pastebin.com/D8Dt6zP5 Processing Page: http://pastebin.com/FpXSziPM Now, onto the problem, I just used 403 Forbidden header when the expected values…