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. ADT Eclipse Plugin won't let me put in a Target

I've been trying to make a new Android project in Eclipse. But
whenever I try to do so, it won't let me select a build target. Here's
a screenshot: http://twitpic.com/198od6


2. SearchManager SUGGEST_COLUMN_ICON_1 for local file

Hi there,

I'm trying to display a custom icon next to each result in the search
It's an image file at in the app's data - in this case at:


I'm building a URI like this:
        String uri = new Uri.Builder()
                        .encodedPath(img)  // where image is the path
I mentioned before

But I get this error in the logs:
W/SuggestionsAdapter(   74): Icon not found: file:/data/data/
__cache_b3e4775cfbd30cd1e8fd7ad379ff9f04.jpg, /data/data/

I know this file exists - I can open it elsewhere e.g. by

Any ideas?  docs/examples seem to be rare on the ground for doing this
- trawled google extensively looking for results!

Thanks all,


3. Netbeans Profiler not working with netbeans android plugin

4. Filter in ExpandableListView

5. OOT: Seberapa Lokalkah Ponsel Lokal? was: Android merek lokal akan bertambah lagi

6. google map 4.1 is out

7. Mau tanya VPN itu buat apa sih?