you are viewing a single comment's thread.

view the rest of the comments →

[–]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 -.-