iphone
asked on
how to POST data using httpurlconnection?
for example i want send a data:
String Sdata1 = "data1";
String Sdata2 = "data2";
how to send data1 and data2?
variables that use at php code:
$data1
$data2
mybe if just using GET, i just set the URL to : http://www.a.com/test.php?data1=Sdata1&data2=Sdata2
,then connect();
but how if post?
String Sdata1 = "data1";
String Sdata2 = "data2";
how to send data1 and data2?
variables that use at php code:
$data1
$data2
mybe if just using GET, i just set the URL to : http://www.a.com/test.php?data1=Sdata1&data2=Sdata2
,then connect();
but how if post?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
and you don't need to use httpurlconnection
ASKER
thx to you both all work
:-)