Reputation: 323
Further to https://stackoverflow.com/questions/16726368/apache-user-auth-and-redirection-based-on-remote-user, I need to do some POSTs
to the REST
API but I'm struggling on how to implement.
I need to do the equivilent of:
/usr/bin/curl -s X POST -H "Accept: application/xml" --cacert ca.cer -u user@domain:password -d "<action />" https://server:port/api/id/stop
in just plain HTML.
Any ideas?
Upvotes: 0
Views: 64
Reputation: 944158
No feature of HTML will allow you to construct a request in which you:
http://foo:[email protected]
) orYou could specify some of that using JavaScript/XHR, but not with "just plain HTML".
Upvotes: 2