I have same question on this too, but i couldnt get it to submit the form
Code:
<form name="form2" method="post" action="/webtix/welcome/welcome.do">
<input type="text" name="cardNum" id="serial" size="25" maxlength="24"/></td>
<input name="pass" type="password" id="passwd" size="25" maxlength="24"/></td>
<input class="go_btn" type="submit" value="Login" id="gobtn2" onclick="return validate(this.form);" />
</form>
Code:
NSURL* url = [NSURL URLWithString:@".../webtix/welcome/welcome.do"];
ASIFormDataRequest* request = [ASIFormDataRequest requestWithURL: url];
[request setPostValue:@"01234" forKey:@"cardNum"];
[request setPostValue:@"01234" forKey:@"pass"];
[request setDelegate: self];
[request startAsynchronous];
I still cant get data from login page...can anyone tell me what is wrong with my code?