Leonard Ehrenfried
Leonard Ehrenfried

Reputation: 1613

Setting the HTTP request type of an <iframe>

Is it possible to make an iframe use a POST rather than a GET request? I am not trying to post a form into the iframe but load the iframe depending on data generated on the server.

Unfortunately, I can't use Javascript in this case (because it is the company's policy that the checkout must be possible without JS).

Upvotes: 5

Views: 5788

Answers (1)

Piskvor left the building
Piskvor left the building

Reputation: 92762

No. IFRAME SRC="/yourscript" always uses a GET.

(You could POST to the IFRAME, or you can GET a page inside the IFRAME that POSTs a form using JS; but you specifically said those aren't viable for you)

Upvotes: 3

Related Questions