Sending data to website from local area?

What we have:
1. Is there a website
2. There is access to the website - admin panel, database, ftp

You must perform the following task:
Run OpenServer (as an example), I go to the local site, the form, fill in the form before sending it to js or php do the formatting of the article (edit, amendment, replacement, etc.), click on the Send button, flying it all on the site (for example directly to the page supplements the article), there are also forms, they are filled with my data and saved the article.

Don't ask me why this whole hemorrhoids =)

Aim at the right path that is needed? Links, examples, what even information.

Thank you.
August 23rd 19 at 11:02
3 answers
August 23rd 19 at 11:04
Solution
Do this:
1) on localhost write a php script
1.1) to login to your admin area of your site on the Internet. Then use curl
1.2) send a POST request to the edit, amendment, replacement, etc. Then use curl
2) localhost write the html page with forms where when you click the "send" button to call the script from p. 1
3) optionally, you can add checks whether the entire operation is done successfully. Need ajax and parse the response from the admin area of your site on the Internet.
Understood. Thank you. Already started Hemmoroids with the entrance =) it Turns out if you have a username and password, you need to know the correct path(url) to the authorization? I have a form located on site.ru/user

Turns out it is necessary to know what the full path? Type site.ru/login=""&password=""

I hope You understand me =) - Vivienne.Lem commented on August 23rd 19 at 11:07
If you form is site.ru/user you are here to send a POST request. In fields where (for example) name - specify the username, password is the password. To learn precisely what are the required fields for their name in the source code of the login page site.ru/user. GET request with authorization you in 99% of cases will not help. - Kieran_Goodw commented on August 23rd 19 at 11:10
well, there is the form name and pass names. Well, something is not working. Or if I just completely do not understand curl =) - Vivienne.Lem commented on August 23rd 19 at 11:13
August 23rd 19 at 11:06
Aim at the right path that is needed?

  • Hands
  • Firebug/HttpFox
  • CuRL
August 23rd 19 at 11:08
What is the range of tasks Your tools?
I think it is easier to upload to the server your php script, which will work directly with the database.

Curl, shape and so on - extra weight and impediments to the work.

Find more questions by tags JavaScriptNode.jsPHP