HTTP_POST_BUF  postdata$ (only available on Wx PLC firmware >= F94.4)
Purpose Append the string: postdata$ to a post buffer, up to a maximum of 1024 bytes. The entire content of the "post_buffer" will be transmitted to the remote web server when you run the HTTP_COMMAND with the "POST" method.
Examples
HTTP_POST_BUF "This is the first part posted by the Wx PLC\0D\0A"
HTTP_POST_BUF "This is the Second and the last part to be posted."
Comments:

  1. You can run this command multiple times and the new postdata$ string will be appended to the buffer up to the maximum buffer size (currently 1024 bytes).
  2. Once the last HTTP_COMMAND with "POST" method has completed the post_buffer will automatically be cleared, allowing the next HTTP_POST_BUF command to append new data.

 

See Also HTTP_CONFIG, HTTP_COMMAND, HTTP_STATUS, HTTP_INPUT$(1)

backbutton.gif (507 bytes)  Basic to TBASIC Reference Manual