Hi,
i'm trying to post some data to a webservice, this html code works fine :
but i can't me it work in b4a with this code :
any suggestion?
i'm trying to post some data to a webservice, this html code works fine :
B4X:
<html>
<head>
<META http-equiv="Content-Type" content="text/html">
</head>
<body>
<div>
<form action="http://URL/androidOutput.php?sn=login" method="post">
<input type="text" name="submit_login" value="1">
<input type="text" name="username" value="NAME">
<input type="text" name="password" value="PASS">
<input type="submit" value="Go">
</form>
</div>
</body></html>
but i can't me it work in b4a with this code :
B4X:
Job1.Initialize("Login", Me)
Job1.PostString("http://URL/androidOutput.php?sn=login", "submit_login=1&username=NAME&password=PASS")
Job1.ContentType = "text/html"
Job1.GetRequest.SetHeader("User-Agent", " Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0")
any suggestion?