0

I'm looking for an equivalent of Mechanize (Ruby/python and more) for iOS.

I need to simulate a click in a webpage (form submission) and get the response back. I tried to construct a POST-request using ASIHTTPRequest without succes. I was able to create a solution in Ruby (with Mechanize) but I want to be able to do the same in objective-c for iphone development. Any suggestions ?

Laurens
  • 2,420
  • 22
  • 39
  • 1
    possible duplicate of [How to send a touch event to iPhone OS?](http://stackoverflow.com/questions/1746452/how-to-send-a-touch-event-to-iphone-os) and [Simulate touch on iPhone](http://stackoverflow.com/q/4137205/643383) – Caleb Nov 12 '11 at 13:56

1 Answers1

0

As described in the duplicated posts, the API to programmatically simulate touches is private, so not appropriate for a shipping app. Follow the links if you want to know how to do it anyway.

Caleb
  • 124,013
  • 19
  • 183
  • 272
  • Thanks for your answer Caleb, I guess my only way to achieve my goal is getting a succesful response to a POST-request of the actual form (if i wanted to still get the app in the market) or getting the response of my ruby script, only downside of this is that it will always request target site with a static server ip instead of the user client ip of the iphone itself.. – Laurens Nov 12 '11 at 15:43