Is the content-type header mandatory? Should it be set to text/plain?

On Thursday, January 17, 2013 12:37:16 PM UTC+2, a wrote:
>
> Thanks for the reply. Ya I m able to see the status and print the status 
> code in Poster. I am using the same code as in the link, not sure 
> why HTTP/1.1 200 OK comes even if I dont set the entity in response. I 
> think it is due to the HttpService constructor, DefaultResponsefactory
>
> httpService = new HttpService(httpproc,new 
> DefaultConnectionReuseStrategy(), new DefaultHttpResponseFactory());
> httpService.setHandlerResolver(reqistry); 
> httpService.setParams(this.params);    
>
> Any idea of what value should be set in this?
>
>
> Thanks!
>
> On Thursday, January 17, 2013 12:24:47 PM UTC+2, skink wrote:
>>
>>
>>
>> a wrote: 
>> > Hi, 
>> > 
>> > I am using 
>> > link 
>> http://hc.apache.org/httpcomponents-core-ga/httpcore/examples/org/apache/http/examples/ElementalHttpServer.java
>>  
>> > to create HTTP server in Android. However in my response I always 
>> > get HTTP/1.1 200 OK in the body(though the header has the status code 
>> 404 
>> > in it). 
>>
>> i see: 
>>
>> "Status Code;HTTP/1.1 404" 
>>
>> in your body, what you see in blue is somethig else, no idea what 
>>
>> pskink 
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to