Do not cross-post. All you do is irritate the people who you want to have
help you.

> I have
> a server running on my computer. I know the URL needs to be my IP
> address and port number.

Most likely, you want to use 10.0.2.2 and your port number.

http://developer.android.com/guide/developing/tools/emulator.html#emulatornetworking

> How do you create a URL object out of an IP
> address and port number?

http://10.0.2.2:8088/your/path/goes/here

where 10.0.2.2 is the IP address and 8088 is the port number.

> I also have some headers and such that I need
> to put on the post message. I haven't seen anyone doing a simple HTTP
> post on Android.

Android has nothing to do with it, other than mandating the specific IP
address you want to use.

http://exampledepot.com/egs/java.net/Post.html
http://exampledepot.com/egs/java.net/PostSocket.html
http://hc.apache.org

The latter is the site for the HttpClient package incorporated in Android
(org.apache.http.*). There are POST examples on there.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to