Love Calculator

By Ajith Joseph | Updated 8 days ago | Entertainment

9.8 / 10



Service Level


Back to All Discussions

Python Requests not working

2 years ago

The example code below not response as it should:

import requests

url = “

querystring = {“fname”:“John”,“sname”:“Alice”}

headers = {
‘x-rapidapi-host’: “”,
‘x-rapidapi-key’: “key”

response = requests.request(“GET”, url, headers=headers, params=querystring)


ajith commented 2 years ago

Okay, let me check on the issue. I will update you soon. Thank you.

olaioo commented 2 years ago

The response is:
<TITLE>403 Forbidden</TITLE>
<BASE href="/error_docs/"><!–[if lte IE 6]></BASE><![endif]–>
You do not have permission to access this document.
Web Server at


  • Unfortunately, Microsoft has added a clever new
  • “feature” to Internet Explorer. If the text of
  • an error’s message is “too small”, specifically
  • less than 512 bytes, Internet Explorer returns
  • its own error message. You can turn that off,
  • but it’s pretty tricky to find switch called
  • “smart error messages”. That means, of course,
  • that short error messages are censored by default.
  • IIS always returns error messages that are long
  • enough to make Internet Explorer happy. The
  • workaround is pretty simple: pad the error
  • message with a big comment like this to push it
  • over the five hundred and twelve bytes minimum.
  • Of course, that’s exactly what you’re reading
  • right now.

Join in the discussion - add comment below:

Login / Signup to post new comments
Rating: 4.2 - Votes: 5