Forum Programmation.python J’arrive pas à poster sur la tribune :(

Posté par  . Licence CC By‑SA.
Étiquettes :
1
28
août
2015
#!/usr/bin/python3
import requests

#print (requests.get("https://linuxfr.org/board/index.xml").text)

mydata = {"Content-Type" :"application/x-www-form-urlencoded;", "Cookie" :"linuxfr.org_session=amdRVnQyQ******z09--603b6d541118c663c8cf7a7efc653fc6ec72c329; https=1", "Host" : "linuxfr.org"}

yo = requests.post("https://linuxfr.org/board", params=mydata, data="board[message]=test")

print (yo.status_code)

me sort :

422

(422 Unprocessable Entity (WebDAV; RFC 4918)
The request was well-formed but was unable to be followed due to semantic errors)

Any kind of help would be appreciated :/

Notez que j’ai mis des (…)