Arduino Wifi Shield POST Request

Hello I want to do a POST request with the “retired” Arduino Wifi Shield but i have an error message " connection failed" and I already update the firmware. So I need your help for send data with the BME280 sensor by WiFi

#include <SparkFunBME280.h>
#include <Wire.h>
#include <SPI.h>
#include <WiFi.h>

BME280 capteur;

byte mac[] = { 0x90, 0xA2, 0xDA, 0x10, 0x47, 0xF2 }; 

char ssid[] = "Bbox-676B70D";      //  your network SSID (name)
char pass[] = "F26A51FFE1CEF4DD2FFD4E651D31E2";   // your network password


int status = WL_IDLE_STATUS;

// Initialize the Wifi client library
WiFiClient client;

unsigned long previousMillis = 0;
unsigned long currentMillis = 0;
int interval = 15000; 
String data="";

// server address:
IPAddress ip_server(192,168,1,66);

void setup() {
  //Initialize serial and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {   
  }

  capteur.settings.commInterface = I2C_MODE; 
  capteur.settings.I2CAddress = 0x76;
  capteur.settings.runMode = 3; 
  capteur.settings.tStandby = 0;
  capteur.settings.filter = 0;
  capteur.settings.tempOverSample = 1 ;
  capteur.settings.pressOverSample = 1;
  capteur.settings.humidOverSample = 1; // wait for serial port to connect. Needed for native USB port only

  // check for the presence of the shield:
  if (WiFi.status() == WL_NO_SHIELD) {
    Serial.println("WiFi shield not present");
    // don't continue:
    while (true);
  }

  String fv = WiFi.firmwareVersion();
  if (fv != "1.1.0") {
    Serial.println("Please upgrade the firmware");
  }

  delay(10);  
  capteur.begin();

  // attempt to connect to Wifi network:
  while (status != WL_CONNECTED) {
    Serial.print("Attempting to connect to SSID: ");
    Serial.println(ssid);
    // Connect to WPA/WPA2 network. Change this line if using open or WEP network:
    status = WiFi.begin(ssid, pass);

    // wait 10 seconds for connection:
    delay(10000);
  }
  // you're connected now, so print out the status:
  printWifiStatus();
}

void loop() {
  currentMillis = millis();
if(currentMillis - previousMillis > interval)
  {
    previousMillis = currentMillis;
    float t = capteur.readTempC();
    float p = capteur.readFloatPressure();
    data = "temp1=" + String(t)+ "&pres1=" + String(p);
    Serial.println(data);
    httpRequest();
  }  
}

void httpRequest() {
  // 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(ip_server,80)) {
    Serial.println("connecting...");
    // send the HTTP PUT request:
    client.println("POST /add2.php HTTP/1.1");
    client.print("Host: ");
    client.println(ip_server);
    client.println("User-Agent: ArduinoWiFi/1.1");
    client.println("Connection: close");
    client.print("Content-Length: ");
    client.println(data.length());
    client.println();
    client.println(data);

    // note the time that the connection was made:
    previousMillis = millis();
  } else {
    // if you couldn't make a connection:
    Serial.println("connection failed");
  }
}

void printWifiStatus() {
  // print the SSID of the network you're attached to:
  Serial.print("SSID: ");
  Serial.println(WiFi.SSID());

  // print your WiFi shield's IP address:
  IPAddress ip = WiFi.localIP();
  Serial.print("IP Address: ");
  Serial.println(ip);

  // print the received signal strength:
  long rssi = WiFi.RSSI();
  Serial.print("signal strength (RSSI):");
  Serial.print(rssi);
  Serial.println(" dBm");

and what did you try to solve it?