connect to webpage on hosted server

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

If serverName contains the url, then this should work.

    client.println("GET /search?q=arduino HTTP/1.0");
    // send host url in header for virtual hosting servers
    client.print("Host: ");
    client.println(serverName);
    // send blank line (end of header)
    client.println();

I've seen code like below that is used with HTTP/1.1

  Serial.println("connecting...");
  if (client.connect()) {
    Serial.println("connected");
    client.print("GET /data/DEMO_MODE/system/phpCommunication/?mode=5&user=test&pass=test HTTP/1.1\r\n");
    client.print("Host: soupis.cz\r\n");
    client.print("Connection: close\r\n");
    client.print("\r\n");

   }

Yes, thank you very much.

These two lines were enough to make it work. Great...

client.print("Host: ");
client.println(serverName);