Is https stored on relative form URLs?

Consider a page with a form that is visited via https. If the form action has a relative form page URL, is the https protocol saved?

Example: you are visiting:

https://example.com/cart.html

which contains the form tag:

<form name="form1" method="post" action="SubmitOrder.aspx" id="form1">

Is the form submitted via https or http?

+5
source share
4 answers

Yes, because it is a relative path.

+5
source

Yes, relative paths always remain. Direct URLs are only needed when switching between http / https or vice versa.

+2
source

: , URL.

More: Relative URLs are allowed to be absolute based on the current URL of the documents. Therefore, if your URL is https, and you do not specify a URL scheme (obviously, because otherwise you will have an absolute URL), the resolved URL uses the same URL scheme as the base URL.

+2
source

It should save part of https.

+1
source

All Articles