Making a simple POST request with the pastebin API
问题 I was wondering how I would be able to make a post request to pastebin.com. They have an easy to understand API documentation, but whenever I run a simple POST request I always get Bad API request, invalid api_option . I'm using the bear minimum required to make the request, I'm not sure what I could be doing wrong. var request = new XMLHttpRequest; request.open("POST", "https://pastebin.com/api/api_post.php?api_dev_key=mykey&api_option=paste&api_paste_code=hi", false); request.send();