Is it possible to fill out forms on a specific site through an IOS application, send data to a server? Then get the data and process it (corresponding to the entered in the field, of course)?

Example: In the search field on a book site, enter the name of the book, after which the press Enter is simulated and the search results are processed.

The question is not in data processing. The question concerns the ability to simulate user actions in order to obtain data corresponding to the request.

  • one
    Yes you can. Firstly, such a thing as headless browsers like phantomjs. In-zero, you need to understand what a client-server interaction. All of these forms, arrows and buttons on the client as a result form the parameters of a standard HTTP request to the server. And in order to form them, it is far from necessary to imitate user actions - Duck Learns to Hide
  • @ Duck Is it possible to implement on a mobile platform? - Ivan Hanenko
  • one
    but, that is, you don’t want to simulate a client, but to do something for a particular user? - Duck Learns to Hide
  • I think you first need to understand how to work the Internet. To read there about the client-server architecture, http and same origin policy, at least at the level of understanding what it is. - Duck Learns to Take Cover
  • @ Duck I need literally this: go to the site, enter the data in the search box, process the resulting page but it should happen behind a curtain. The user should see only the result. - Ivan Hanenko

1 answer 1

Forms and buttons are rendered by the browser only for the user.
He [the browser] does not need them and is even harmful (resources are spent on rendering and, at times, considerable).
This request is made by a special package (HTTP2) or a string (HTTP1.1).
Something like:

http://mybestbookstore.com/api?query=220+Tage+im+Weltraumschiff&author=Martynow+G. 
  • Sorry, I corrected the topic a bit. I'm sorry that I misled you about the question - Ivan Hanenko
  • @Ivanganenko, hmm, okay, although the part about HTTP is also true for iOS. - user207618
  • those. I can send a request in the appropriate form for the server to get the information that I need? - Ivan Hanenko
  • @Ivanganenko, yes, you do not need the form to make a request, it is enough to form a URI and request it - there will be results. Although it is convenient and beautiful with the molds, if you think about it, they are not needed for the request, especially since you do not need to emulate their pressing. - user207618
  • And if the request is not human-like? Example / wps / portal / home / rp / schedule / ut / p / c5 / 04_SB8K8xLLM9MSSzPy8xBz9CP0os3gTi0C3MMdQb7MANx8XA8_gEGcfNw9XQwNDA6B8pFm8s7ujh4m5j4GBv1GYgYGRn2lwoEFosLGBpzExug1wAEcDArq99KPSc_KTgK4MB7kbSa2hmaklUK1PUEiosYuhhakRRB6fO0HyeFzi55Gfm6pfkBsaURnsqQsAlB5hlQ !! / DL3 / d3 / L0lDU0lKSmdrS0NsRUpDZ3BSQ1NBL29Ob2dBRUlRaGpFS0lRQUJHY1p3aklDa3FTaFNOQkFOYUEhIS80QzFiOVdfTnIwZ0RFU1pJSlJERVNaTUpRaUlrZmchIS83XzQ4UUZWQVVLNlA1MDYwSVNKTEtHTEQyMDA3LzNQMjFHNTU3NTAwMDkvaWJtLmludi8zMzQwMTU5NzYzNjAvamF2YXguc2VydmxldC5pbmNsdWRlLnBhdGhfaW5mby8lMFNlbGVjdFJvdXRlVmlldy5qc3A / -!! Ivan Hanenko