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. Cannot View Images from SD Card Image on Emulator

Hello all,

I have just started learning to develop for the G1 after two weeks of
joyful us of my actual G1.

I have however, come across a stumbling block in my development
learning. I have successfully emulated an SD Card on the emulator.
However, now, after saving an image from the browser to the phone I
cannot 'View Picture' or 'Crop Picture' for a wallpaper.

All I get when trying to access the picture is an error message
saying:

"The application Camera (process com.android.camera) has stopped
automatically. Please try again."

Does anyone know why this is or how to get around/fix it?

Thanks

--~--~---------~--~----~------------~-------~--~----~

2. Browser Vulnerabilit

Has this issue been solved in the current firmware version?

http://securityevaluators.com/content/case-studies/android/index.jsp

Help is appreciated.

BR,
Aubrey

3. set max zoom level in map

4. Abort Http URL

5. Why doesn't this align?

6. How to call methods from a web service?

7. running out of memory