Skip to content

Use HTTPS instead of HTTP for API calls#4

Merged
six519 merged 1 commit intosix519:masterfrom
jcbrockschmidt:patch-1
Aug 18, 2022
Merged

Use HTTPS instead of HTTP for API calls#4
six519 merged 1 commit intosix519:masterfrom
jcbrockschmidt:patch-1

Conversation

@jcbrockschmidt
Copy link
Contributor

Using an HTTP URL for the API yields a 405 error. For instance, when attempting to paste a file

api = PastebinPython(api_dev_key=API_DEV_KEY)
api.createPasteFromFile(FILE_NAME)

We get the following error

pastebin_python.pastebin_exceptions.PastebinFileException: HTTP Error 405: Method Not Allowed

Using HTTPS instead fixes this.

Using HTTP yields a 405 error. For instance, when attempting to paste a file
```
api = PastebinPython(api_dev_key=API_DEV_KEY)
api.createPasteFromFile(FILE_NAME)
```
We get the following error
```
pastebin_python.pastebin_exceptions.PastebinFileException: HTTP Error 405: Method Not Allowed
```
Using HTTPS instead fixes this.
@six519 six519 merged commit 327450a into six519:master Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants