HTML Form Post

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf HTML Form Post

  • Creator
    Topic
  • #55493
    Albert Tong
    Participant

      Hello,

      Per the Cloverleaf docs you can do an html form post: [4] Create a UPoC that processes incoming HTTP requests. This could be a SOAP message,

      XML, plain text, an HTML form post, or even an image file.

      Does anyone know the UPoC syntax to populate form headers to emulate submitting a form through a POST? I have searched the documents with no luck.

    Viewing 0 reply threads
    • Author
      Replies
      • #85551
        Albert Tong
        Participant

          Here is how HTTP form params are added in a raw TCL example for reference. Trying to do this exact thing here in Cloverleaf:

          #  Add the form parameters to the HTTP request:

          CkHttpRequest_AddParam $request “firstname” “John”

          CkHttpRequest_AddParam $request “lastname” “Doe”

          CkHttpRequest_AddParam $request “myHiddenField1” “Hidden Value 1”

          CkHttpRequest_AddParam $request “myHiddenField2” “Hidden Value 2”

          Full code can be found here: https://www.example-code.com/tcl/http_formSubmitPost.asp

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.