I want to post a data to a webpage like this.
Http://servername.com/page.php?bla=infofromapp
So a post get command for post a page would be nice.
you can do that if the server accepts something like this:
Http://servername.com/page.php?username=bla&password=blabla
or do you normally have to fill out a form with input boxes for username/password and click on a "send" button?
some servers accept both ways. if the first is acceptable, then you don't need to post anything. just do like above. otherwise you need to use okhttputils poststring method.
in either case, however, you need to know exactly how the username and password fields are called (eg, "username", "userid", "userID", "ID"). what is the server expecting those fields to be called? in order to know what the fields are called, you need to look at the webpage's source.
do not forget to take note of any "hidden" fields. they must be included in the request. if you're unfamiliar with webpage forms, you need to look into them.
if a form is involved, okhttputils2 has a poststring method to which you would pass the relevant data, eg,
"username={name}&password={password}&hiddenfield={hiddenfield}".
you then download the server's response as you always do. what you do with that response is unclear since you didn't get into that.