Re: Http url connection : server returned http response code 400

2013-11-16 Thread vicky b
THanks you, can you please let me know what optimization I have to make. con.setRequestProperty(Referer, request.getHeader(Referer)); was the issue , since it was being set to null On Mon, Nov 11, 2013 at 7:38 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP

Http url connection : server returned http response code 400

2013-11-11 Thread vicky b
HI All, I am getting server returned http response code 400 when i run below code from my tomcat however it works fine when i run it in WAS whch has proxy server settings. URL url = new URL(reqUrl); HttpURLConnection con = (HttpURLConnection)url.openConnection(); con.setDoOutput(true);

Re: Http url connection : server returned http response code 400

2013-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Vicky, On 11/11/13, 10:02 AM, vicky b wrote: I am getting server returned http response code 400 when i run below code from my tomcat however it works fine when i run it in WAS whch has proxy server settings. URL url = new URL(reqUrl);