HTTP Form

From WebWatchBotWiki
Jump to: navigation, search
 Share 

HTTP/HTTPS form settings specify form based data to use when running the Watch Item


http_settings_form.gif

Fields and Buttons

Request Type

  • The request type sets how to send form data to the server. By default, forms use the "GET" method, which causes form data to be passed along in the query string of the URL.
  • If using GET, you may include form data by appending it to the end of the URL or IP Address specified for the watch item.
  • If using POST, you may include form data in the Post Data field


Post Data

  • Enter data to "POST" to a web page in name=value format. Separate multiple values with the ampersand symbol "&". Example: userid=login&&password=secret. See Also: Monitor Web Page with a Form Tutorial.
  • Post Data value randomization. WebWatchBot can create random text for dynamic POST data.
    • There are three types of random data types: text, decimal, or integer:
      • Text: Enter in the format (*TEXT:0*) where the number is the length of the text string.
      • Decimal: (*DECIMAL:2.2*) where the number is the length and precision of the decimal. Decimals can have a precision of up to 9. The maximum length of a decimal is 20.
      • Integer: (*INTEGER:0*), where the number is the length of integer. The maximum length of an integer is 20.
    • Examples - Using POST data "userid=yourname&password=secret"
      • "userid=(*TEXT:8*)&password=secret", produces output similar to: "userid=wPIiurks&password=secret"
      • "userid=(*DECIMAL:2.2*)&password=secret", produces output similar to: "userid=25.72&password=secret"
      • "userid=(*INTEGER:10*)&password=secret", produces output similar to: "userid=9934102347&password=secret"

URL Encode

  • Click the URL Encode button to encode specific characters.
  • For example, if the post data is "userid=the userid", when passed, all text after the space is ignored, and the post form processing the passed in form data will set userid to "the". When encoded, "userid=the+userid", the entire text is recognized and decoded; the form will set userid to "the userid".

Record

(Enterprise and Trial versions only) - Launches the Form Recorder.


Header

  • Optional HTTP headers. Separate multiple lines with new line (press return). When Posting form data, if the "content-type" is not specified the header "Content-Type: application/x-www-form-urlencoded" is automatically used.
  • **Warning** Pressing the URL Encode button multiple times may produce undesirable results.