none
How to code this powershell? RRS feed

  • Question

  • Referring to following coding, I would like to know on how to place action part into script before sending request?

    Does anyone have any suggestions?
    Thanks in advance for any suggestions


    HTML

    <form class="c-form" id="RForm" action="/ajax/rv/sendrv/" method="post">
    <input type="hidden" value="24ffkjsahds64uhkidshsdlksdhjhjkuinsd088863f0e0" name="FORM_TOKEN" />
    <input
                class="c-input"
                data-qaa="c-input"
                id="rItem-5"
                type="radio" name="r-option--1"
                value="5"
                        >

    HTML

    PowerShell Script

    $URL = "http://www.testing.com/sample.html"
    $postParams = @{FORM_TOKEN='24ffkjsahds64uhkidshsdlksdhjhjkuinsd088863f0e0';r-option--1='5'}
    Invoke-WebRequest -Uri $URL -Method POST -Body $postParams

    PowerShell Script


    


    Thanks in advance for any suggestions

    • Moved by Bill_Stewart Wednesday, February 14, 2018 7:38 PM Help vampire
    Sunday, January 7, 2018 4:27 AM