Google API error
BlitzMax Forums/BlitzMax Programming/Google API error
| ||
stream=ReadStream("http::www.google.com/cse?cx=(MY API KEY)&q=obama&output=xml_no_dtd") If stream While Not stream.Eof() Print stream.ReadLine() Wend EndIf This results in a 403 error, saying "Your client does not have permission to get URL". Last edited 2012 |
| ||
That URL looks a bit strange, could you try:stream=ReadStream("http://www.google.com/cse?cx=(MY API KEY)&q=obama&output=xml_no_dtd") I'm guessing it still wont work, as a quick google (pun!?) turns up a heap of results with this error... Last edited 2012 |
| ||
Other examples from a quick search show https: in the URL -- the BlitzMax http:: protocol doesn't support SSL sockets. You might have to use something like Brucey's libcurl mod, which I believe would do it. Also, https uses port 443 as far as I'm aware, and Blitz's http:: only supports standard port 80 access I think. Last edited 2012 |
| ||
Ah, there you go... Last edited 2012 |