views:

16

answers:

0

Hello,

I have created a sample application in Java with sending POST request to a asp.net web page "mypage.aspx". This apsx page sending back some response and 1 headers to check its valid or not.

Aspx page set headers like Response.AddHeader("my-source", "lmenaria.com");

In my Java program:

Header[] headers = method.getResponseHeaders("my-source"); byte[] data = method.getResponseBody();

I am able to get Response body always but some times headers are empty. So how it will be possible that headers are empty some times.

My HTTPClient version is 3.0.1.

So please let me know.

Thanks in advance, Laxmilal Menaria