Http request returns code 505 -Not Supported

Hi,

I am running an Arduino UNO with an ESP8266 WiFi Shield which I interface through the Softwareserial library.

I am currently testing the AT commands in order to really understand the communication. I therefore have a simple program for sending the Serial data to Software serial and simply print the commands on the Serial monitor.

When make a Http GET request, I get a 505-Http version not supported message. What does this mean and how I can solve this.

Thanks in advance.

M

From my Serial monitor it looks like this:


AT+CIPSTART="TCP","www.example.com",80

CONNECT

OK
AT+CIPSEND=41

OK

\n\r\n

busy s...

Recv 41 bytes

SEND OK

+IPD,549:HTTP/1.0 505 HTTP Version Not Supported
Content-Type: text/html
Content-Length: 379
Connection: close
Date: Tue, 18 Sep 2018 06:56:28 GMT
Server: ECSF (lga/137D)

<?xml version="1.0" encoding="iso-8859-1"?> 505 - HTTP Version Not Supported

505 - HTTP Version Not Supported

CLOSED

My code looks like this:

#include <SoftwareSerial.h>

SoftwareSerial ESPserial(2, 3); // RX | TX

void setup() {
Serial.begin(9600); // communication with the host computer

// Start the software serial for communication with the ESP8266
ESPserial.begin(9600);
Serial.println("");
Serial.println("Remember to to set Both NL & CR in the serial monitor.");
Serial.println("Ready");
Serial.println("");
}

void loop() {

// listen for communication from the ESP8266 and then write it to the serial monitor
if ( ESPserial.available() ) {
Serial.write( ESPserial.read() );
}

// listen for user input and send it to the ESP8266
if ( Serial.available() ) {
ESPserial.write( Serial.read() );
}

}

the server has a timeout expecting machine to machine communication. it expects immediately after connect a http request with headers. you can be fast enough in serial monitor to send the request.

+IPD,549:HTTP/1.0 505 HTTP Version Not Supported

Is that message really that hard to understand?

You are trying to use HTTP version 1.0, which the server no longer supports. The most commonly supported version is 1.1.

PaulS:
Is that message really that hard to understand?

You are trying to use HTTP version 1.0, which the server no longer supports. The most commonly supported version is 1.1.

Thanks for the answer. No, not hard at all, but I get the same reply with HTTP version 1.1... :confused: