Hello everyone, tell me what it is possible to implement a program that will fill in the required fields with input data, the essence of this auto-complete is to simplify my work on creating a user on 4 resources of our company, where essentially the same thing is introduced, in JS I implemented it, but you have to run the script on different sites all over again, because locate cancels the following instructions, is it possible to do it for example, or tell me how easy it is.
2 answers
Try not to dig into the autocomplete fields, but in the outgoing query itself. You can analyze the markup or, for example, in chrome, you can see it in the console on the Network tab. There you can find the page and the parameters passed to it.
In this case, you can simply create a script in Ruby or Python that will send an HTTP POST request to the server and thereby register the user.
- All my data is sent not in the query string, but in his body, and I have no idea how to replace them, you can set an example for how to fill in 1 field, then I will do everything, thank you very much - Sergey Krylov
- @ SergeyKrylov, when the data is transmitted in the body, it is called a POST request, and when in the GET line the request. You need to send POST from Ruby, I don’t understand much about it, but you need a standard function from net / http, something like this: sites.google.com/site/sitsiliyaror/blogs/… - Alex Krass
|
For example, write an api-method for each of the sites that will receive data to create a new user.
And on one of the sites, when sending data, use another 3 post requests that will apply to these api to add a user.
|