Change protocol in form submit, relative path

Discussion in 'ASP .Net' started by D Godwin, Apr 21, 2006.

  1. D Godwin

    D Godwin Guest

    This is probably more of a straight HTML question, but here goes: I want to
    change from http to https during a form submit. This it pretty
    straightforward with a complete path
    (action=https://site.com/folder/page.aspx), but how can you specify a
    relative path so you don't have to change it when switching from a
    development site to the production site?

    Thanks.
    David
     
    D Godwin, Apr 21, 2006
    #1
    1. Advertising

  2. You can't becuase no page on a secure website can be relative to an insecure
    one, they are totally seperate, it's as if you are refering to a page on a
    different domain.

    "D Godwin" wrote:

    > This is probably more of a straight HTML question, but here goes: I want to
    > change from http to https during a form submit. This it pretty
    > straightforward with a complete path
    > (action=https://site.com/folder/page.aspx), but how can you specify a
    > relative path so you don't have to change it when switching from a
    > development site to the production site?
    >
    > Thanks.
    > David
    >
    >
    >
     
    =?Utf-8?B?Y2xpY2tvbg==?=, Apr 21, 2006
    #2
    1. Advertising

  3. D Godwin

    D Godwin Guest

    That's what I thought. I'll just load it from the config file and change it
    as needed there.


    "clickon" <> wrote in message
    news:...
    > You can't becuase no page on a secure website can be relative to an
    > insecure
    > one, they are totally seperate, it's as if you are refering to a page on a
    > different domain.
    >
    > "D Godwin" wrote:
    >
    >> This is probably more of a straight HTML question, but here goes: I want
    >> to
    >> change from http to https during a form submit. This it pretty
    >> straightforward with a complete path
    >> (action=https://site.com/folder/page.aspx), but how can you specify a
    >> relative path so you don't have to change it when switching from a
    >> development site to the production site?
    >>
    >> Thanks.
    >> David
    >>
    >>
    >>
     
    D Godwin, Apr 21, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stratocaster
    Replies:
    1
    Views:
    4,843
    bo123
    Nov 18, 2004
  2. Matt
    Replies:
    3
    Views:
    19,571
    Sudsy
    Jul 8, 2004
  3. Thomas Guettler
    Replies:
    3
    Views:
    762
    Andrei
    Oct 27, 2003
  4. Oren
    Replies:
    1
    Views:
    552
    Michael D. Ober
    Apr 29, 2007
  5. Replies:
    3
    Views:
    708
Loading...

Share This Page