传递 POST 参数 - 无 URL。他们到底在哪里?
我正在设计一个简单的 Web 设备,用于获取温度和湿度读数,我想将它们发布到远程服务器并将它们添加到 MySQL 数据表中。
我知道由于幂等性问题,GET 是错误的方法。但是,如果您不能简单地拼凑出一个 URL 并用它调用页面,那么使用 POST 执行此操作的语法或方法是什么?
我在客户端的相当低的级别上工作 - 带有以太网库的微处理器。它有一个 client.open() 接口,然后我可以将“打印”语句发送到打开的客户端连接。
有谁知道服务器应该看到什么来接收帖子和一堆参数?
K
I'm designing a simple web appliance that takes temperature and humidity readings and I want to post them to a remote server and have them added to a MySQL table of data.
I understand that GET is the wrong way to do this because of the idempotency problem. However, what is the syntax or method for doing this with a POST if you can't just cobble up a URL and call the page with it?
I'm working at a fairly low level on the client side - a microprocessor with an Ethernet library. It has a client.open() interface, and then I can send "print" statements to the open client connection.
Does anyone know what the server is supposed to see to receive a post and a bunch of arguments?
K
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论