Tagged Questions
0
votes
0answers
25 views
HttpClient Streaming: Possibility of consuming OutputStream while still writing to InputStream
I have a situation where I'm streaming a large file to a remote endpoint, this endpoint is then doing some manipulation of the stream (say encryption or compression) and streaming the result back.
...
0
votes
0answers
40 views
Using Apache HTTP Components (client) and the examples given just won't work
I have tried using the quick given example of:
HttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet("http://localhost/");
HttpResponse response = ...
1
vote
1answer
28 views
HttpClient parameters not being added to the executing method
Sorry that it's potentially an easy answer but I can't find anything.
I currently have the method:
public MediaSource getConvertedMediaServletCall(String format) throws HttpException, ...
0
votes
0answers
44 views
cookie managment not working in httpAsyncClient
I am setting cookie in my request so that my spring application can recognize the client..problem is the server is not recognizing the client for second request...here is my client code...and i am ...
1
vote
1answer
103 views
State managment in httpAsyncClient
I am trying to set cookie in httpAsyncClient library but problem is i am not figure out to find example of it..here is my code.
public JSONArray sendRequest(List<BasicNameValuePair> ...
0
votes
1answer
555 views
How to add,set and get Header in request of HttpClient?
In my application I need to set the header in the request and I need to print the header value in the console...
So please give an example to do this the HttpClient or edit this in my code...
My Code ...
0
votes
0answers
85 views
Covert httpclient code to HttpAsyncClient..?
i am sending a simple request to server..to get user record...i am sending user id from client and server responses me in the form of JSonArray every thing is working perfectly now i want to covert my ...
1
vote
1answer
251 views
Sending Push Notification to Desktop application in java
Here is my application scenario...
User requests for login and sends credentials to the web server(From Desktop application using httpClient API).
Servlet(tomcat) authenticates user and send ...
1
vote
2answers
699 views
How to pass an object from a java class to servlet?
I am using Apache's HttpClient to call a servlet from a Java class. I want to send an object to the servlet which should save the object using Serialization. How to send the object to the servlet?
...
2
votes
2answers
101 views
Which is best method for calling a required servlet
I have a desktop application from where a client can add a new user, can chat with other user etc... I have 2 options now:
To make a handler servlet which will get post request on
according to ...
1
vote
4answers
154 views
Synchronize Request and Response in HttpClient Class
I am trying to make login validation in using httpClient and getting infinite loop on server side.More explanation will be after code. here is my server side code
public void ...
1
vote
2answers
989 views
Java - Posting GZIP file using Apache Http client
I need to send a tar.gzip file from one java app (via a Servlet) to another - I'm using HTTP client with a MultipartEntity to achieve this.
During the file transfer, the file seems to double in size ...
1
vote
2answers
2k views
UTF-8 encoding problem with servlet and apache HttpClient
I have a servlet that sends a string with utf-8 encoding. Also I have a client written with apache httpcomponents library.
My problem is reading the response in utf-8. Some special characters like ñ ...
0
votes
1answer
712 views
Sending data from servlet to android application with JSON
Good night,
I'm trying to send from a servlet written in Java data name in a JSON to an application in Android.
Not that I'm doing wrong but when it comes to mobile text comes a strange text.
Below ...
0
votes
1answer
245 views
Get Request Attribute using HttpClient
I found a couple of questions somewhat related to this:
httpclient-request-set-attribute-question
commons-httpclient-adding-query-string-parameters-to-get-post-request
but I think I am trying to do ...