Specifying a port in HttpPost

by drill » Sat, 27 Feb 2010 18:36:27 GMT

Sponsored Links
 I want to make a Http-post-request to a webserver on a specific port.
For that I use the HttpPost constructor as follows:
HttpPost post = new HttpPost(" http://webpage.com :1212/httppost.php");
Then I put some parameters with it using
When I now want to execute that request with
HttpResponse response = client.execute(post);
I receive a NoHttpResponseException.
The server is available and when I try all that without a port I don't
get that exception, but I need to specify my port. Is there anybody
who had a similar problem or do have a solution for me?

Thanks a lot.


Other Threads

1. peculiar or undocumented behavior of ExifInterface?

I have been trying to use ExifInterface and am either doing something very 
wrong or my subject line is correct.

If I run the following code

                ExifInterface hoohaa;
                hoohaa = new ExifInterface(filename);

on a photograph taken by the standard android Camera application, a whole bunch of exif fields previously defined have 
disappeared (as evidenced by inspection with Exiftool (Phil Harvey) and other such programs). I find this very peculiar.

On a much less important issue, if a photograph with a JPEG comment (NOT an 
exif UserComment) is the object of

                ExifInterface hoohaa;
                hoohaa = new ExifInterface(filename);
                String haahoo=hoohaa.getAttribute("UserComment");

the JPEG comment will be returned as if it were an exif UserComment. I find this friendly in a way, but unwarranted and 

Have I got this all wrong?

Bernard Higonnet


2. 2D acceleration (Froyo)


 I presume that the path is SurfaceFlinger -> OpenGL backend -> Copybit:

   - Is this true for web based content as well?
   - Is there any documentation wrt code & data flow?



3. block telephone dan SMS di spica

4. Update facebook & twydroid

5. if i want to add overlay item to appear in map & also the gps point

6. help enabling NFS rootfs support

7. http://apps-for-android.googlecode.com/svn default.properties not found