I found a URL that httpclient doesn't seem to be handling redirects on:
http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNGrJk-F7Dmshmtze2yhifxRsv8sRg&url=http://www.mtv.com/news/articles/1647243/20100907/story.jhtml
should 302 to:
http://www.mtv.com/news/articles/1647243/20100907/story.jhtml
when I look at the headers i...
Hi there i am trying to load an XML from a remote host useing node.js.
The problem is that german "umlaute" like "ä" are broken. Like in the browser this usualy is a simple encoding problem. But since the XML on the remote host is encoded in iso-8859-2" i had no success getting the letters back to work.
The functionality is very simple...
Somehow I can't find this info
...
My goal was to create a REST service that will allow me to POST and GET images. I've got the GET portion working, however I'm having difficulty posting an image to the service I created. Using the WCF REST Service Template 40 (CS) template I created the following method to handle my POST.
[WebInvoke(Method = "POST", UriTemplate = "upl...
As the google trends api has still not yet been published I wanted to try and get the data using AIR. I am using the as3httpclient lib to login to my google account, here is how I'm doing so far:
Credit for the approach to:
this blog post
//this first connection will get the authorization token by sending the user name and password fo...
I have an http request that worked as http://blah.com and now I have been asked to use https://blah.com
The former works and the later fails with a Network I/O error. Are there any missing parameter settings that I need for the client?
The URL request:
D/MyAppWebservice(23142): http-transform :) [https://cdp.mobibob.com:8151/DoTransa...
I am using HttpClient 4.02 to create a connection via proxy (using the CONNECT method) to tunnel a connection to a remote server. HttpClient is very convenient for this but I am new to the API and cannot see how to get at the underlying Socket of the tunneled connection.
The following code taken from: http://svn.apache.org/repos/asf/htt...
I'm attempting to use an HttpDelete object to invoke a web service's delete method. The web service's code parses JSON from the message's body. However, I'm failing to understand how to add a body to an HttpDelete object. Is there a way to do this?
With HttpPut and HttpPost, I call the setEntity method and pass in my JSON. There doe...
I am trying to connect an Android application with a secured HTTPS remote service that is hosted in Google App Engine for Java (https://applicationname.appspot.com), using the HTTPClient 4 implementation that comes with Android. The certificate is signed and valid form *.appspot.com.
I am using Android 2.1 in a real device (HTC Hero), ...
I use an httpconnection to post some data to the server and wait for response.
The connection can be canceled by closing the inputstream, outputstream and connection.
But if I cancel the connection at a right timing, then though the is, os, connnection are closed, but the worker thread just hand there, for about one minute. And then a ...
Hi,
I have been trying to use the dispatch library to download a file via an http POST request. The server returns a "content-disposition" header suggesting a filename for the data file it returns.
I have succeeded reading the entire response body as a string,
http(r >~ { (x) => println(x.getLines.mkString("","\n","")) })
reading th...
Hi, When executing a PostMethod with httpclient , the request is not stopped at
the defined timeout.
Running on the acer liquid with 3G network ,but in the emulator it works fine and it generate a SocketTimeoutException
HttpParams httpParameters = new BasicHttpParams();
// Set the timeout in milliseconds until a connection is e...
I'm attempting to do basic auth with Apache HTTPClient 4.x using the example from the site, the only change being that I've extracted some details out into constants, however I'm not getting the results I was hoping for.
Namely, with the logging turned up to debug, I'm getting: "DEBUG main client.DefaultHttpClient:1171 - Credentials not...
My app makes multiple request to a web server via a static method, here is the method's body
try {
DefaultHttpClient defaultHttpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(url);
httpPost.setHeader("Accept-Encoding", "gzip");
List<NameValuePair> nameValuePairs = new ArrayList<NameVa...
When I hit Search on London journey planner (e.g from Holborn to Savoy Pier), I get result in about 4 secs. When I do that with HttpClient using POST method, this line takes about 10 secs:
InputStream is = httpClient.execute(httpPost).getEntity().getContent();
Any ideas what can be the problem? I'm sending the same parameters as brows...
I didn't really want to post here as there is so much information on the net, but I've trawled the depths and can't figure it out.
Ok so I can't get this to work in two scenario's hopefully the answer is the same for both.
My problem is I set the request header but it doesn't seem to send it.
I have a session id s=e32ff223fwefd3 , and...
Hi,
I am using HttpClient for the first time to make a request to a web service (defined by WADL), I'd like to unmarshall the response into a meaningful object, in the browser if I perform the Get request it response with XML. But when I display the response from the code it seems to be JSON. Am I missing a step? or is there a way th...
Hi all,
I'm implementing a SOLR server in our application.
We use the CommonsHttpSolrServer in the SolrJ package to connect to our solr server which uses the commons-httpclient.
We also use Spring.
Now our sysadmin secured the solr server (with good reason) and used Basic Auth.
How can I instantiate a HttpClient with Basic Auth to be ...
I am attempting to connect to a local HTTPS server using the apache DefaultHttpClient on a Android device.
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://192.168.1.121:4113/services");
... header and content filling in ...
HttpResponse response = httpclient.execute(httppost);
I am ...
I get a 404 Not Found from http://hc.apache.org/httpcomponents-client-4.0.1/httpclient/apidocs/index.html -- does anyone know where the httpclient 4.0.x javadoc lives? (directed to that link from http://hc.apache.org/user-docs.html)
The Primer is also missing http://hc.apache.org/httpcomponents-client/primer.html
...