Hi, To form you url you will have to append parameters like so
params.append(URLEncoder.encode(
"somevalue", "UTF-8")).append("=").append(URLEncoder.encode(somevalue,
"UTF-8"))
.append(
"&").append(URLEncoder.encode("someothervalue",
"UTF-8")).append("=").append(URLEncoder.encode(someothervalue,
"UTF-8"));
----- Original Message -----
From: xspotlivin
To: "Android Beginners"
Subject: [android-beginners] HTTP Post
Date: Sun, 19 Apr 2009 15:36:59 -0700 (PDT)
I'm trying to do an HTTP Post, but I'm having a lot of trouble. I
have
a server running on my computer. I know the URL needs to be my IP
address and port number. How do you create a URL object out of an IP
address and 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. Can anyone help me?
=================================
Avron Olshewsky
"Everything should be made as simple as possible,
but not simpler" - Albert Einstein
Skype : Avrono
MSN : [email protected]
Phone : +44 2071837733
--
It's News. It's Reviews. It's Interviews. It's Free. What Are You Waiting For?
www.movieline.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---