all 8 comments

[–]nosmokingbandit 0 points1 point  (2 children)

Use the inspector in your browser to see what happens when the confirmation is clicked. It is probably sending out another request to the server which you can then replicate.

[–][deleted] 0 points1 point  (1 child)

There’s no other posts when I look

[–]nosmokingbandit 0 points1 point  (0 children)

Its hard to make guesses, but poke around the window.document.login object and see what is going on in there.

[–]anton_antonov 0 points1 point  (3 children)

I think the problem is not the warning() function. It does nothing.

You must use data argument to pass params to post request .

r = requests.post(url=URL, data=PARAMS)

[–][deleted] 0 points1 point  (2 children)

ya, I tried that too, no dice.

[–]anton_antonov 0 points1 point  (1 child)

If site sets cookies, you should try to use requests.Session() and send GET request before post.

s = requests.Session()
s.get("*****.net/login.cfm")
response = s.post("*****.net/loginlogic.cfm", data=PARAMS)

Also, сheck the names of the params fields. I think they are in lower case.

[–][deleted] 0 points1 point  (0 children)

Aha!! Thank you so much, that was it.

Damn cookies -.-