Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Post web form

  1. #1

    Default Post web form

    Hi,

    is some way how to post web form using kettle?

    Example:

    I have form like below

    <form action="http://www.localhsot.com/doSomething.php" method="post">
    <input type=text name="Steven">
    <input type=submit name=press value=" OK ">
    </form>

    What should I do to post it?

    Thanx for advices.

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    Try to use a "HTTP Post" step.
    Enter your action value in the URL field.
    Your form fields will come from a suitable input step, use DataGrid for testing.
    Add your form fields on the Fields page of the step under Body Parameters and select "Put in Header?" = N.
    So long, and thanks for all the fish.

  3. #3

    Default

    Hi marabu,

    thank you for reply. I hadn't mentioned, that I need solution for various number of inputs. One POST can have only two inputs but others 3, 4 or more (IE. below).
    I have decided to use bash(4ever ) curl, because Kettle HTTP Post Step makes me crazy and I didn't find better way.

    <form action="http://www.localhsot.com/doSomething.php" method="post">
    <input type=text name="firstname" value="Stephen">
    <input type=text name="lastname" value="Crop">
    .
    .
    <input type=submit name=press value=" OK ">
    </form>

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.