Sends a string/buffer containing binary data to the remote host. Before WebTcpipSendBin can be used, a valid connection has to be established with WebTcpipConnect.
WebAPI.bdh
WebTcpipSendBin ( in hWeb : number, in sData : string, in nDataLen : number optional ): boolean;
true if the data is sent successfully
false otherwise
Parameter | Description |
---|---|
hWeb | Valid handle to a Web connection that was created by WebTcpipConnect. |
sData | String containing the data. For posting all available binary data specify STRING_COMPLETE for nDataLength and use the bin() operator for sData (see example). |
nDataLen | Number of bytes to send to the server (optional) . Specify STRING_COMPLETE or omit this parameter to post all available data. |
dcltrans transaction TWebApplevel var hWeb : number; sData : string; begin sData := "\h00010203040506070809101112131415"; WebTcpipConnect(hWeb, "standardhost", 6644); WebTcpipSendBin(hWeb, bin(sData)); WebTcpipShutdown(hWeb); end TWebApplevel;