在使用nmhttp控件的post 、get方法发送数据时,
请问我应该怎么用分别使用这两种方法发送数据,
对方在cgi中有如何接受发送过来的参数数据。
请各位高手指教、最好有着两种方法的详细说明和使用范例。
在下先谢谢了。
请问我应该怎么用分别使用这两种方法发送数据,
对方在cgi中有如何接受发送过来的参数数据。
请各位高手指教、最好有着两种方法的详细说明和使用范例。
在下先谢谢了。
解决方案 »
- 请帮忙看看,ExtractStrings(['#'],[' '],Pchar(str),strList)的返回值为什么等于7,很纳闷
- 求dxsock的帮助文档或示例
- 恳请介绍几本关于DELPHI的C/S,多层开发方面的书.
- 把窗口显示到最前面的代码怎么写,不是始终在最前,只是提前
- 谁能告诉我哪里有这个控件下载啊?
- 关于Number类型出错问题,高手请进!
- TADOTable插入记录老出怪错
- 怎么让后台运行的程序能同时用于win9x和xp?
- 请教各位,关于这个.......谢谢
- 救急,小弟用TPrinter实现文本打印,请教如何换页???
- 不使用钩子函数如何实现这个功能?
- 我在一个Form上放有两个DBGrid,怎样判定焦点是在DBGrid1上或是在DBGrid2上?
procedure Get(URL: string); virtual;Description
The Get method retrieves the document specified by the URL parameter. If InputFileMode is TRUE, the document retrieved by the Get method is stored in the file that is specified by the Body property, and the header is stored in the file that is specified by the Header property.If InputFileMode is FALSE, the document retrieved by the Get method is stored in the Body property as a string. The header is stored in the Header property as a string.
就是说get(url),其中url是你要得到的文件的url,inputfilemode属性如果是true,那么你得到的文件就在以body数行为文件名的文件里面,否则,得到的数据就在body属性里面。并且http协议的header信息再header属性里面。Declaration
procedure Post(URL, PostData: string); virtual;Description
The Post method posts the information specified by the PostData parameter to the document specified by the URL parameter.Parameters:
The URL parameter specifies the document to post the data to.
If the OutputFileMode property is TRUE, the PostData parameter specifies a file path and name that contains the data to be posted to the document specified by the URL parameter.
If the OutputFileMode property is FALSE, the PostData parameter must contain the data that is to be posted to the document specified by the URL parameter.post(url,data)其中url是要接受你传递的信息的页面url,data参数是你要传递的数据。
如果OutputFileMode属性是真,那么data指定一个本地的文件名称,否则data参数就是你要传递的数据。
其实学学asp和html另外再看看http协议规范你就会很明白了。