POST on new Google Docs Form

Hello,

I have been using Google docs to store some sensor data. It have been working great till Google changed the DOCS
:slight_smile:

Now i cannot send a correct POST, because i receive HTTP/1.1 400 Bad Request

My POST is like this:

String data;
data="entry.1525379305=abracadabra&submit=Submit";
// if there's a successful connection:
if (client.connect(server, 80)) {
Serial.println("connecting...");
// send the HTTP PUT request:
client.println("POST /forms/d/1dDBu-GWQqTFRe_fmiSY-V881ABDIxDoTSkfJ3APGo2c/formResponse? HTTP/1.1");
client.println("Host: docs.google.com");
client.println("Content-Type: application/x-www-form-urlencoded");
client.println("Connection: close");
client.print("Content-Length: ");
client.println(data.length());
client.println();
client.print(data);
client.println();

The data is correct and i can send the POST with Mozilla Poster.
My problem i think is in the syntax i use to send the POST.

Any help will be greatly appreciated.

Suggest you ask on a forum specialising in Google Docs, since the question is about that rather than Arduino.

Hi chip69, you can solve your problem with POST google Form request, i have a same problem :frowning:

It appears that Google docs now uses SSL for that. If you try to download http://docs.google.com, it is redirected to https://docs.google.com. The ethernet library does not support SSL.