problem with get and ethernet

I have a arduino uno and ethernet shield.
I configure a web server with php files. If i write in my navigator www.******* the data up correct to mysql.
I modified webcliend example to upload the data to mysql from arduino uno but not found.
it s the code

#include <SPI.h>
#include <Ethernet.h>

// Enter a MAC address for your controller below.
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

// if you don't want to use DNS (and reduce your sketch size)
// use the numeric IP instead of the name for the server:
//IPAddress server(74,125,232,128);  // numeric IP for Google (no DNS)
char server[] = "www.*******";    // name address for Google (using DNS)

// Set the static IP address to use if the DHCP fails to assign
IPAddress ip(192,168,1,57);

float temperatura=39;

// Initialize the Ethernet client library
// with the IP address and port of the server 
// that you want to connect to (port 80 is default for HTTP):
EthernetClient client;

void setup() {
// Open serial communications and wait for port to open:
  while (!Serial) {
   ; // wait for serial port to connect. Needed for Leonardo only

 // start the Ethernet connection:
 if (Ethernet.begin(mac) == 0) {
   Serial.println("Failed to configure Ethernet using DHCP");
   // no point in carrying on, so do nothing forevermore:
   // try to congifure using IP address instead of DHCP:
   Ethernet.begin(mac, ip);
 // give the Ethernet shield a second to initialize:

 // if you get a connection, report back via serial:
 if (client.connect(server, 80)==1) {
   client.print("GET /add.php?cb1=23&cb2=25"); // Enviamos los datos por GET
   client.println(" HTTP/1.1");
   client.println("Host: www.*******");
   client.println("User-Agent: Arduino 1.0");
 else {
   // kf you didn't get a connection to the server:
   Serial.println("connection failed");

void loop()
 // if there are incoming bytes available 
 // from the server, read them and print them:
 if (client.available()) {
   char c =;

 // if the server's disconnected, stop the client:
 if (!client.connected()) {

   // do nothing forevermore:

and in serial monitor the arduino write
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 25 Oct 2016 09:28:04 GMT
Content-Type: text/html
Content-Length: 857
Connection: keep-alive
Vary: Accept-Encoding
Expires: Thu, 01 Jan 1970 00:00:01 GMT
Cache-Control: no-cache

This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support disconnecting.

But no data show at mysql database

"This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support" The Arduino ethernet library code does not support JavaScript.

hi, SuferTim. What can i do resolve the problem?

I'm not sure. The Javascript function does two things. It inserts a cookie into the browser cookie list, then calls a second URL.

1) > client.print("GET /add.php?cb1=23&cb2=25"); // Enviamos los datos por GET I don't send headers. 2) do you write your php receive-code? The request is sims to be 404 page.


<?php include("connect.php"); $link=Connection(); $cb1=$_GET["cb1"]; $cb2=$_GET["cb2"]; $query = "INSERT INTO `donhietdo` (`cb1`, `cb2`) VALUES ('".$cb1."','".$cb2."')"; mysql_query($query,$link); mysql_close($link); ?>

There is something else going on in the background. I see nothing in your page about Javascript being required. Where is that coming from?

Are you responding to the get cookie request from the server? It isn't putting a cookie into your web browser just for giggles.