https是否保留在相对表单操作URL上?

Rob*_*bot 5 html forms url ssl

考虑一个页面,其中包含通过https访问的表单.如果表单操作具有表单页面的相对URL,则保留https协议吗?

例如:你访问:

https://example.com/cart.html
Run Code Online (Sandbox Code Playgroud)

其中包含表单标记:

<form name="form1" method="post" action="SubmitOrder.aspx" id="form1">
Run Code Online (Sandbox Code Playgroud)

表单是通过https还是http提交的?

Tre*_*vor 5

是的,因为它是一条相对的道路.


DGM*_*DGM 1

它应该保留 https 部分。