大侠们,iweb post的buffer是什么格式?

snake_cy1234 2009-10-28 06:07:18
大侠们,用iweb 发送post 信息时, post消息体 里应该怎么写? 我看例子就是一个 *buffer 但是网页的post应该是 名字 值 这样的格式?

加入我想给网页传 name 张三 和 age 10 两个参数
这个 SourceData应该是什么格式的?
if(ISOURCEUTIL_SourceFromMemory(pISourceUtil,SourceData, STRLEN(SourceData), NULL,NULL,&pISource)==SUCCESS){//object to be created
...全文
1809 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
strayedbird 2009-10-29
  • 打赏
  • 举报
回复
When the user clicks the Submit button to submit the form, the browser sends an HTTP request to the server using the POST method. The web server then passes this request to the Register servlet and the doPost method of the servlet is invoked. Using the POST method in a form, the parameter name/value pairs of the form are sent in the request body. For example, if you use the preceding form as an example and enter Ann as the value for firstName and Go as the value for lastName,you will get the following result in the request body:
firstName=Ann
lastName=Go
hhygcy 2009-10-29
  • 打赏
  • 举报
回复
post的data是什么格式应该是你自己协议的一部分
你的http server根据这个binary data array来做解析的而已
没有什么特殊的规定啊
strayedbird 2009-10-29
  • 打赏
  • 举报
回复
想一想,GET和POST如果功能一样,为什么不做成一样的呢?结论就是:和GET一样
  • 打赏
  • 举报
回复
需要encode吧
snake_cy1234 2009-10-29
  • 打赏
  • 举报
回复
请大侠进一步指点

2,851

社区成员

发帖
与我相关
我的任务
社区描述
本论坛以AI、WoS 、XR、IoT、Auto、生成式AI等核心板块组成,为开发者提供便捷及高效的学习和交流平台。 高通开发者专区主页:https://qualcomm.csdn.net/
人工智能物联网机器学习 技术论坛(原bbs) 北京·东城区
社区管理员
  • csdnsqst0050
  • chipseeker
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧