Thread:Project:Support desk/API Question - Create/Editing page

Hello,

I am having some trouble with the API and my MediaWIKI website.

My goal is to create a Perl script for my college capstone class that allows the user to create a new page on the wiki when they are giving input to the script. I won't go into detail as to why they have to create a new page, the page just has to be created when the user is running this specific Perl script and instead of just telling them as an instruction on the script, it would be nice if when they give input through the script so I can programmatically create the page.

Anyways, here is what I have so far: - I got my API token by going to my API link: api.php?action=tokens

Here is the code I'm currently using for the script:

Now this runs perfectly fine, however I keep getting the same error over and over:

Obviously I'm making sure that my token is correct and up to date as I keep checking the token api link. Before the POST request is actually made, I print out the request as a string:

Everything seems fine there!

Anyone run into this? I have a feeling it has to do with the urlencoding of the +\ in the token... thanks!