HttpClient « restful « Java Enterprise Q&A





1. Is there a good HttpClient library for J2ME/MIDP?    stackoverflow.com

I want to call some RESTful web services from a J2ME client running on a MIDP enabled mobile device. I read the MIDP api for HTTPConnections and thought this is just ...

2. Use HTTPClient or HttpUrlConnection?    stackoverflow.com

We're implementing a REST client on JRE 1.4. Seems two good options for a client REST framework are HttpClient and HttpUrlConnection. Is there a reason ...

3. Using Restful SecurityContext to invoke other services?    stackoverflow.com

I have two pieces of code I am trying to combine (or at least the functionality). The first is a restful service... like this

@Post
@Path("TestService")
@Consumes("text/xml")
@Produces("text/xml")
public String myService(String inXML, @Context SecurityContext sec) ...

4. apache httpclient content length issue    stackoverflow.com

I am trying to post some JSON to a rest service using Apache Httpclient. However, I get this error :

    Exception in thread "main" org.apache.http.ProtocolException: Content-Length header already ...

5. some clarifications regarding REST PUT verb and other none CRUD based actions    stackoverflow.com

I have read this GREAT answer regarding REST. I have few questions regarding it:

  1. According to the answer and what i read, new resource creation needs happen using the PUT verb ...

6. Apache httpclient giving connection timeout after 5 ot 6 hrs    stackoverflow.com

I am using httpclient 4.1.2. If I do a connect to a particular host XYZ and keep the client program running for more than 5 to 6 hr, connects to the same ...