403 Forbidden Error using URL


Hub=C4
Details.

I have a problem using this URL. I get a 403 error, Forbidden. Here is the link but with the appid x'ed out:

https://api.wolframalpha.com/v1/result?i=sun%20angle%20[//place:80132//]%20[//date:10-25-24//]%20[//time:7:42%20am//]&3F&appid=xxxxxx-xxxxxxxxxx

Other URLs seems to work fine in Webcore, so maybe this is just a problem with this website. Also it works fine in all the browsers I tried in Win11. Any idea what would cause this problem?

My guess is you don’t have it properly URL encoded for webCoRE., i.e the [//..//] strings

The // is what their API uses (requires?). What do you recommend I do?

Could the https also be an issue?

When you enter that into the browser it automatically URL encodes the string, webCoRE and RM require that you specifically supply the value already encoded. Easiest way is to go to an online URL encoder and type in the string you need and then use the resultant output to formulate your call from webCoRE.

I tried 2 different online URL encoders, but when I use either, I get a 408 error. If I tweak the string a bit, I can fix the 408 error, but I still get a 403 error. I'm not sure why this URL is different from others that I use, but I am successfully using other URLs in other pistons and they work well in Webcore without going thru URL encoders. I also tried using http instead of https with no success.

https://api.wolframalpha.com/v1/result?i=sun%20angle%20[%2F%2Fplace%3A80132%2F%2F]%20[%2F%2Fdate%3A10-25-24%2F%2F]%20[%2F%2Ftime%3A7%3A42%2520am%2F%2F]&3F&appid=xxxxxx-xxxxxxxxxx

2 Likes

Thanks, that worked.

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.