HTML Viewer question?

Why would I get this error on a web page that I can load from iOS or even in Safari?
I’m wondering if there is a security related setting I just don’t know about.

It could have something to do with the user agent string. If the server is expecting something in particular or even if the string is empty when it should not be, an exception could be raised.

Remember, anything from 500-599 is a “server error” and indicates that something went horribly wrong when it tried to process your request.

Something to test… use a URLConnection to make that request and see if you also get an error.

1 Like

that’s interesting.

@Chris_Halford - If you want to see what the HTML Viewer is sending (in terms of the User-Agent header, etc), you can have it load this:

Here’s a blog post about that app:

1 Like

I had to put this project on the back burner for a bit, but I’m back at it now.

It’s odd, I can load this url from an android browser “
but if I try to load it in the Xojo android html viewer it errors out as indicated above.

I tried a URLConnection and the initial response comes back fine, so I’m guessing it’s something in the HTML that is trying to process/load additional elements.

Here is what the URL Tim suggested returns. I’m bad with this browser stuff so I don’t know what to make of this, except I’m surprised to see AppleWebKit and Mobile Safari in there.

I can’t even imagine how I can debug this from here. I’ll try anything you all can suggest though