Question

Use of HTTP caller for a php address

  • 4 April 2024
  • 2 replies
  • 83 views

Badge +8

Hi

 

I have an address that I would like to access with login (username/password) using HTTP Caller but I am not able to pass the username/pwd forward using POST.

Webaddress is php, any ideas?

 

 


2 replies

Badge +8

I got this in the rsponse body

 

<link rel="stylesheet" type="text/css" href="style.css"/>
<div id="login">
<img src="images/Logo.png" alt="Geotech" style="width:300px;height:300px" hspace="10"><br>
     Please log in

        <form action='login.php' method='post'><input type='hidden' name='ac' value='login'>
       
        Username*: <input type='text' name='loginName' required><br>
        Password*:&nbsp&nbsp<input type='password' name='password' required >
       
       <input type='submit' value='Login' >
   </form>
</div>

Userlevel 2
Badge +6

Hi @felipeverdu, you can try setting Upload Data to Multipart / Form Data. Alternatively, you can set Upload Data to Specify Upload Body, and then Content Type to URL Encoded (application/x-www-form-urlencoded), with an Upload Body like this: ac=login&loginName=@Value(loginName)&password=@Value(Password). It should look like this: 

 

Reply