Hello,
I'm trying to create a client on the Arduino with the ethernet shield to connect to a webpage.
I just started, so I didn't program that much already, but I am stuck with a problem.
When I try the example on the tutorial website:http://arduino.cc/en/Tutorial/DnsWebClient
This all works fine.
But when I enter a different URL to a hosted website, the message that the arduino returns is a 404 (page does not exist) page.
The problem is that the webserver is from a hosting party and it hosts more than one website.
If I do a dns query of the URL, the IP address that is returned is the correct address, but the webserver expects the complete domainname in the webpage request for it to produce the correct webpage.
Is there a workaround for this?
Most of the examples I found for connecting an Arduino to a webpage do this based on the IP address. But this doesn't work with webpages that are hosted on webservers from hosting parties.
Anyone got a solution?
Thanks