apache-httpcomponents
Handling multiple requests over a single connection using httpcomponents?
I want to use a single connection to communicate with a client device. I am having problems keeping the connection alive. I\'m using DefaultConnectionReuseStrategy() which returns false for keepAlive[详细]
2023-04-07 20:07 分类:问答How to post array parameters with HttpComponents
I want to perform this command with Apache http-components (4.1.2) curl--data \"strings[]=testOne&string-keys[]=test.one&strings[]=testTwo&string-keys[]=test.two&project=Test\" https[详细]
2023-04-03 06:20 分类:问答Is there a way to get the String value of an HttpEntity when EntityUtils.toString() returns an exception?
I keep running into this situation where I get back a bad HTTP response (like a 400) but cannot look at the HttpEntity in the HttpResponse object.When I step through with the debugger, I can see that[详细]
2023-04-01 08:58 分类:问答Java - DefaultHttpClient and "Host" header [Apache HttpComponent]
I\'m submitting multiple HTTP Requests via a DefaultHttpClient. The problem is that the \"Host\" header is never set in the request. For example by executing the following GET request:[详细]
2023-03-23 20:10 分类:问答"En dash" being garbled during http response handling or text manipulation
I\'m writing code to work with text from Wikipedia and am having issues with en dashes being garbled.I haven\'t worked with en dashes or other non-standard characters before (non-standard to me being[详细]
2023-03-16 15:35 分类:问答Creating and loading cookies in Java
I\'m writing a small webserver in Java, using HttpCore for most Http requests/responses etc. Now I would like to be able to create, store and load cookies. I can\'t find anything in HttpCore and I\'m[详细]
2023-03-12 19:21 分类:问答Getting post data from request
I\'m writing a server side app in Java using the HttpCore library. I have an HttpRequest and I\'m trying to get the postdata sent from a form. The problem is- when I use request.getEntit开发者_开发百[详细]
2023-03-12 18:39 分类:问答How can I change the socket timeout for a half-processed request in Apache httpcore NIO?
Say you have an application based on Apache HttpComponents, which handles regular requests and long polling requests (\"comet\"). By using NHttpRequestHandler you can delay the response for some reque[详细]
2023-03-12 17:22 分类:问答How do I tell the remote IP address from within NHttpRequestHandler using Apache httpcomponents?
I am implementing a comet-style (delayed response) http server using Apache httpcomponents. My code is very similar to the \"Basic non-blocking HTTP server\" example at http://hc.apache.org/httpcompon[详细]
2023-03-12 09:55 分类:问答Apache HttpComponents HttpClient timeout
How do I set the connection timeout in httpcomponents httpclient? I have found the documentation at: http://hc.apache.org/httpcomponents-client-开发者_如何转开发ga/tutorial/html/connmgmt.html but it i[详细]
2023-03-06 20:23 分类:问答