Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » 400 Bad Request
400 Bad Request [message #871525] Mon, 14 May 2012 10:27
karthik elavan is currently offline karthik elavanFriend
Messages: 70
Registered: August 2011
Location: Chennai

I have developed middle-tier application which is used for blackberry, iphone etc..

In that application am facing a new issue.

There is an url called "videos.get" which needs user-agent as input and returns a video play url as response

In middle-tier for this url "videos.get" written a controller called "VideosController" and in that controller hit an another url (by adding some header fields) to get the video play response (an url to download the video)

header fields added are:

public DefaultHttpClient appgatewayClient;
public HttpPost post = new HttpPost();

auth = Base64.encode((username + ":" + password), "UTF-8");
post.setURI(new URI(videosUrl));
post.addHeader("Authorization", "Basic "+ auth);
post.setHeader("HTTP", "1.1");
post.setHeader("X-Api-Version", apiVersion);
post.setHeader("X-App-Id ", appId);
post.setHeader("X-Subscriber-Id", msisdnNumber);

We have three types of server environments:

1. Development mode - In our office
2. Test server mode - In our office (India)
3. Live server - In Europe

This videosController works both in development & test server, and it throws the below error in live server

<title>400 Bad Request</title>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
The number of request header fields exceeds this server's limit.</p>

This videosController gives the correct response when I last deployed my war file in live server and after some times it throws the above error, and when I restart my bundle it works for some times after that it again throws this above error

Server used in all places is: Virgo-tomcat server 3.0.2

Thanks in advance,

[Updated on: Mon, 14 May 2012 13:11]

Report message to a moderator

Previous Topic:How to: create DWP programmatically?
Next Topic:Install WST only?
Goto Forum:

Current Time: Thu Sep 24 12:44:09 GMT 2020

Powered by FUDForum. Page generated in 0.02179 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top