Answer the question
In order to leave comments, you need to log in
Authorization using POST request?
Good afternoon,
We have a web table with IP addresses from Eltex switches.
To speed up / simplify access to the Web-interface of the switch, when you click on the button, you would immediately fall into the Web-interface of the switch.
As I understand it, authorization occurs through a POST request.
Request URL: http://10.26.6.2/config/log_off_page.htm
Request Method: POST
Status Code: 302 Redirect
Remote Address: 10.26.6.2:80
Referrer Policy: no-referrer-when-downgrade
HTTP/1.1 302 Redirect
language=ru; username=admin; UserId=192.168.31.102&-382372159&Server: GoAhead-Webs
Date: Tue Apr 16 12:17:57 2019
Connection: close
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Location: http://10.26.6.2/home.htm
POST /config/log_off_page.htm HTTP/1.1
Host: 10.26.6.2
Connection: keep-alive
Content-Length: 89
Cache-Control: max-age=0
Origin: http://10.26.6.2
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
Referer: http://10.26.6.2/config/log_off_page.htm
Accept-Encoding: gzip, deflate
Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7
Cookie: language=ru; username=admin; UserId=192.168.31.102&-382372159&
restoreUrl:
errorCollector:
userName$query: admin
password$query: admin
langSelect: 0
Answer the question
In order to leave comments, you need to log in
Make a post request on the backend (php, nodejs, java, ...) and return the result to the frontend. You can test with curl first.
PHP example:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://адрес_странички");
curl_setopt($ch, CURLOPT_POST, 1);
curl_exec ($ch);
curl_close ($ch);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question