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
post.setEntity(params);
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.
regards

--



Other Threads

1. nbu file

Salam kenal dr nubi...

Mo nanya ke para mastah2 d sini, mengenai file nbu hasil backup nokia.

Jd ceritanya gini, setelah hp nokia tube sy hilang sy lsg beli hp android
murmer buat icip2 os android yg penomenal ini.

Namun sy bingung gmn mindahin hasil backup nokia sy (.nbu file) berupa sms
dan kontak ke hp android ini ( Lil'G )

Maaf kalo masalah ini sdh d bahas sblmnya.

TIA

Wahyu
@a53p4m3

-- 
===============

2. Fast way to save images in lossless format?

My app involves saving 480x854 8888ARGB images (1.6Mb of data) in
lossless format. I've been using Bitmap.compress to do this in PNG
format but have observed this method can take several seconds to
finish.

When used with typical photographs, this method takes between 2 and 5
seconds to return on a Droid phone for me, compressing the data to
about 0.4Mb. Is there a way to save images in a lossless format in
less time than this?

I was hoping to tweak the compression parameters for saving the PNG
file but Bitmap.compress offers no options (it ignores the compression
parameter). Based on the output file sizes, my suspicion is this
method uses a high level of compression and, if this could be reduced,
the images could be saved faster.

-- 

3. Sell physical goods from an Android application

4. Contacts.NAME_RAW_CONTACT_ID cant be edited, bug or a future feature?

5. Wifi sleeps... even with lock

6. Fastboot and the Verizon Xoom

7. Hi, all. Hope someone could give me a hand.