Using the Webviewer

I doubt that the problem is with the arduino server. It basically uses a library that creates the web server. When a request is received, the string “GET /file1” is searched for. If found, then the server merely returns the string “file 1 selected” to the client.

Would it be useful to use a tool in a browser like Chrome or Firefox to display the raw data that is received from the arduino. Maybe seeing the raw data will give a clue as to why the web component will not get the response. I have tried this and get a bunch of garbage and I cannot even see the “file 1 selected” response. The arduino sends a simple response but I do not know what other info is added by the arduino web server.

I just noticed that if the url is set to google.com. then there is what looks like raw data received. There is some preamble stuff that the web component does not accept. The google response has something like texxt/html; charset-iso-8859-1, and http//google.com, and 200, then a lot of data.

Maybe the web component requires a specific format. One would think that the raw data would be displayed in any event. It seems like the PC web browsers do not have a problem with what the arduino sends.

What url are you using to get a response back using a computer browser?

http://hambo.mynetgear.com:8085/file1

Does not work…

I thought I would finalize this thread.

The problem is with the web server software on the Arduino. As it turns out, the response header info was not being sent, i.e. “HTTP:1.1 200 OK”, and “Content-type:text/HTML”. My Firefox browser did not care about this header info so the desired response was received. Other browsers want the headers and create an error if not there. I still don’t know the exact procedure to make a good response but that is the issue. Thanks all.

thank you for letting us know...
Taifun

I tried to respond yesterday but the forum locked me out because I had posted to many reply’s in a 24 hour period. I had to wait until I could post again.

(Thread reclassified to MIT Appinventor Help to allow use of Solution check box)
(fingers crossed)