Vincent Catalano
Vincent Catalano

Reputation: 2321

SSL form POST from one site to another

I am attempting to do a POST securely from one website to another. Instead of trying to do our own encryption or hashing I would like to use SSL. Is it possible to do a form post from one site to another using SSL that would be completely secure for transferring the user information?

Upvotes: 1

Views: 801

Answers (2)

James Hill
James Hill

Reputation: 61872

A simple form post should work.

<form action="https://theirsite.com/Form.html" method="post">
    <input type="hidden" name="UserID" value="1" />
    <input type="text" name="UserName" value="Quickfire55" />
</form>

Upvotes: 2

erickson
erickson

Reputation: 269877

You can't redirect the user's browser to another site with POST (the redirect will switch to a GET), but you can certainly have one server initiate a POST to another site over SSL.

Upvotes: 2

Related Questions