P
pxlei
Unregistered / Unconfirmed
GUEST, unregistred user!
需要向CGI传输
username
password
text
三个参数。
由于text的数据量特别大,远远超过255个字符。
当把
NMHTTP1.OutputFileMode :=true;
后,
nmhttp1.post如何设置,
对应的文本文件什麽样的格式?
如加入需要传递的是:
username=pxlei
password=adre
text如下:
Declaration
procedure Post(URL, PostData: string);
Description
The Post method posts the contents of PostData to the specified URL.
Parameters:
The URL parameter specifies the location to post the data to.
If OutputFileMode is TRUE:
The PostData parameter specifies the name of the file that contains the data to post to the specified URL.
If OutputFileMode is FALSE:
The PostData parameter contains the actual data to post to the specified URL as a string. Note that in this case the amount of data that can be posted is limited by the maximum length of the String datatype.
Events Called: OnConnect, OnInvalidHost, OnHostResolved, OnStatus, OnDisconnect, OnConnectionFailed, OnRedirect, OnAboutToSend, OnSuccess, OnFailure, OnPacketSent
Scope: Public
username
password
text
三个参数。
由于text的数据量特别大,远远超过255个字符。
当把
NMHTTP1.OutputFileMode :=true;
后,
nmhttp1.post如何设置,
对应的文本文件什麽样的格式?
如加入需要传递的是:
username=pxlei
password=adre
text如下:
Declaration
procedure Post(URL, PostData: string);
Description
The Post method posts the contents of PostData to the specified URL.
Parameters:
The URL parameter specifies the location to post the data to.
If OutputFileMode is TRUE:
The PostData parameter specifies the name of the file that contains the data to post to the specified URL.
If OutputFileMode is FALSE:
The PostData parameter contains the actual data to post to the specified URL as a string. Note that in this case the amount of data that can be posted is limited by the maximum length of the String datatype.
Events Called: OnConnect, OnInvalidHost, OnHostResolved, OnStatus, OnDisconnect, OnConnectionFailed, OnRedirect, OnAboutToSend, OnSuccess, OnFailure, OnPacketSent
Scope: Public