Dear All,
I've been scratching my head on this for 2 day now before I try to post on this forum to pick on the collective mind (BORG 101).
The code below is from the Arduino IDE Example for Ethernet for WebClientRepeating. I am trying to test the code to load a php page that queries a mySQL database. It doesn't seems to work. Somehow when I tried webserver call using telnet :
GET /j.php?id=123&gateID=Gate1 HTTP/1.1
Host: 192.168.0.99
User-Agent: arduino-ethernet
Connection: close
it's giving me this respond :
501 Not ImplementedI tried the whole url using chrome : /j.php?id=123&gateId=Gate1
it worked
// this method makes a HTTP connection to the server:
void httpRequest(String memberId, String gateId){
// close any connection before send a new request.
 // This will free the socket on the WiFi shield
 client.stop();
 // if there's a successful connection:
 if (client.connect(server, 80)) {
 Â
  Serial.println("connecting...");
  // send the HTTP PUT request:
 Â
  // Formats the Url call to factor in MemberID and GateID
  String pageCall;
 Â
  pageCall = "GET /j.php?id=" + memberId + "&gateId=" + gateId + " HTTP/1.1";
  client.println(pageCall);
//Â Â client.println("GET /j.php?id=10 HTTP/1.1");
  client.println("Host: 192.168.0.99");
  client.println("User-Agent: arduino-ethernet");
  client.println("Connection: close");
 Â
  Serial.print("PageCall :");
  Serial.println(pageCall);
  Serial.println("Host: 192.168.0.99");
  Serial.println("User-Agent: arduino-ethernet");
  Serial.println("Connection: close");
 Â
 }
 else {Â
  // if you couldn't make a connection:
  Serial.println("connection failed");
  client.stop();
 }
}