Love Calculator

GRATIS
Da Ajith Joseph | Aggiornamento לפני 4 ימים | Entertainment
Popolarità

9.7 / 10

Latenza

548ms

Livello di servizio

95%

Health Check

N/A

Torna a tutte le discussioni

Python Requests not working

Rapid account: Olaioo
olaioo
לפני 4 שנים

The example code below not response as it should:

import requests

url = “https://love-calculator.p.rapidapi.com/getPercentage

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

headers = {
‘x-rapidapi-host’: “love-calculator.p.rapidapi.com”,
‘x-rapidapi-key’: “key”
}

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

print(response.text)

Rapid account: Ajith
ajith Commented לפני 4 שנים

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

Rapid account: Olaioo
olaioo Commented לפני 4 שנים

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

<!–

  • 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.
    –>

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti