user52206: I have an Arduino Uno and an ESP8266 and I want to send a HTTP get request to google.com and print the response.
Please help me thanks.

user52137: You can use ESP8266Wifi Arduino Library.
Here an example:
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>

const char* ssid = "yourNetworkName";
const char* password = "yourNetworkPassword";

void setup () {

  Serial.begin(115200);
  WiFi.begin(ssid, password);

  while (WiFi.status() != WL_CONNECTED) {

    delay(1000);
    Serial.print("Connecting..");

  }

}

void loop() {

  if (WiFi.status() == WL_CONNECTED) { //Check WiFi connection status

    HTTPClient http;  //Declare an object of class HTTPClient

    http.begin("http://www.google.com");  //Specify request destination
    int httpCode = http.GET();     //Send the request                                                           

    if (httpCode > 0) { //Check the returning code

      String payload = http.getString();   //Get the request response payload
      Serial.println(payload);                     //Print the response payload

    }

    http.end();   //Close connection

  }

  delay(30000);    //Send a request every 30 seconds

}


52206: <p>I have an Arduino Uno and an ESP8266 and I want to send a HTTP get request to <code>google.com</code> and print the response.
Please help me thanks.</p>
 52137: <p>You can use <a href="https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WiFi" rel="nofollow noreferrer">ESP8266Wifi</a> Arduino Library.</p>

<p><a href="https://techtutorialsx.com/2016/07/17/esp8266-http-get-requests/" rel="nofollow noreferrer">Here</a> an example:</p>

<pre><code>#include &lt;ESP8266WiFi.h&gt;
#include &lt;ESP8266HTTPClient.h&gt;

const char* ssid = "yourNetworkName";
const char* password = "yourNetworkPassword";

void setup () {

  Serial.begin(115200);
  WiFi.begin(ssid, password);

  while (WiFi.status() != WL_CONNECTED) {

    delay(1000);
    Serial.print("Connecting..");

  }

}

void loop() {

  if (WiFi.status() == WL_CONNECTED) { //Check WiFi connection status

    HTTPClient http;  //Declare an object of class HTTPClient

    http.begin("http://www.google.com");  //Specify request destination
    int httpCode = http.GET();     //Send the request                                                           

    if (httpCode &gt; 0) { //Check the returning code

      String payload = http.getString();   //Get the request response payload
      Serial.println(payload);                     //Print the response payload

    }

    http.end();   //Close connection

  }

  delay(30000);    //Send a request every 30 seconds

}
</code></pre>
