O
O
Oleg2021-06-09 17:30:49
Python
Oleg, 2021-06-09 17:30:49

How to send a request?

Tell me please.
Here is the form

<form action="reboot.html" method="post" onsubmit="return confirm_reboot()"></form>

how to send a request for its processing using the request library? Well, so that return confirm_reboot () worked.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2021-06-10
@Screpka

solved the issue via cURL curl -u username:password http://address -X POST -d form_button_name=function_as_in_post_response

G
galaxy, 2021-06-09
@galaxy

No way. Requests does not execute JS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question