Arduino POST vs GET请求

Arduino POST vs GET请求,post,get,arduino,google-fusion-tables,Post,Get,Arduino,Google Fusion Tables,我有一堆Arduino监视器的温度数据,我想把它们放进谷歌的Fusion表中。融合表需要OAuth来插入Arduino无法处理的记录我不认为,我想创建一个小应用程序Google的应用程序引擎来接收来自Arduino的数据,然后这个应用程序将使用融合表进行身份验证并插入一条记录。每条记录大约有65个字段。我还不知道如何在Google app Engine上运行该应用程序,但我会分别计算我们的应用程序。我想知道的是使用我的Arduino的GET请求或POST请求将数据发送到应用程序的利弊。在这种情况

我有一堆Arduino监视器的温度数据,我想把它们放进谷歌的Fusion表中。融合表需要OAuth来插入Arduino无法处理的记录我不认为,我想创建一个小应用程序Google的应用程序引擎来接收来自Arduino的数据,然后这个应用程序将使用融合表进行身份验证并插入一条记录。每条记录大约有65个字段。我还不知道如何在Google app Engine上运行该应用程序,但我会分别计算我们的应用程序。我想知道的是使用我的Arduino的GET请求或POST请求将数据发送到应用程序的利弊。在这种情况下,一种选择比另一种更好吗?

如果要从Arduino发送数据,则需要使用HTTP POST请求

两者的区别在于GET用于从服务器请求数据,而POST用于向服务器发送数据

以下是有关HTTP消息类型信息的链接:

现在,对于Arduino代码,您需要执行以下操作以使用发送POST请求


如果我的回答对你有帮助,你能接受/投赞成票吗?如果没有,你能详细说明我还能提供什么帮助吗?
//First, establish a connection to the cell tower via GSM
String PIN = "123456";  //The PIN of your SIM card
gsmAccess.begin(PIN);

//Next, connect to your service provider's GPRS network (internet access)
String GPRS_APN = "The APN of your provider";
String GPRS_LOGIN = "Your login name";
String GPRS_PASSWORD = "Your password";
gprs.attachGPRS(GPRS_APN, GPRS_LOGIN, GPRS_PASSWORD);

//Now you need to connect a client to your GAE web server on port 80
client.connect("ServerName", 80);

//Now send the properly-formed HTTP POST request
String message = "The message body of the request, the data you want to send";
client.print("POST ");
client.print("/yourPathToDesiredPage");
client.println(" HTTP/1.1");
client.print("Host: ");
client.println("ServerName");
client.println("Content-Type: text/plain");
client.print("Content-Length: ");
client.println(message.length());
client.println();
client.println(message);
client.endWrite();