Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > how to change from "http" to "https" without reloading the site.

Reply
Thread Tools

how to change from "http" to "https" without reloading the site.

 
 
Tamer
Guest
Posts: n/a
 
      01-20-2008
Hi!
Is there a way to change the protocoll type through Javascript without
reloading (or making a request from the webserver) via Javascript?

for example:

http://mydomain.com -> https://mydomain.com

and backwards (if possible).

I want only to change the protocoll BUT NOT making a new server request.

That's all.


For any advise and help from your side I would thank you very much!


Tamer
 
Reply With Quote
 
 
 
 
Jim Ley
Guest
Posts: n/a
 
      01-20-2008
On Sun, 20 Jan 2008 19:28:21 +0200, Tamer <> wrote:

>Hi!
>Is there a way to change the protocoll type through Javascript without
>reloading (or making a request from the webserver) via Javascript?
>
>for example:
>
>http://mydomain.com -> https://mydomain.com
>
>and backwards (if possible).
>
>I want only to change the protocoll BUT NOT making a new server request.


Of course not, the very sites are completely different, https and http
are simply different things.

Jim.
 
Reply With Quote
 
 
 
 
António Marques
Guest
Posts: n/a
 
      01-21-2008
Tamer wrote:
> Hi! Is there a way to change the protocoll type through Javascript
> without reloading (or making a request from the webserver) via
> Javascript?
>
> for example:
>
> http://mydomain.com -> https://mydomain.com
>
> and backwards (if possible).
>
> I want only to change the protocoll BUT NOT making a new server
> request.
>
> That's all.


No... the protocol here is the way information is transmitted between
client and server. http simply sends clear data from one to another,
while https first establishes a session with keys for both end points
and then transmits the data encrypted. When you see 'https' in yout url
bar, it means that whatever you're viewing in your browser has *already*
been received in encrypted form. Conversely, if you see 'http', it means
that no encryption *has been* used. Logically, you cannot, through
javascript or any other means - except maybe a time machine - alter the
protocol in your url bar, because that url reflects a *past*,
*completed*, use of the protocol.

In simple terms: you received an page delivered unencryptedly. It's
done. If you so wish, you may ask for an encrypted delivery - bot only
for a *new* request. It's as if you'd received a packet through DHL -
you can't change that fact and receive it through UPS instead, unless
you order it again.

IF your problem is how to preserve the info sent in the first request -
so that the user doesn't have to provide all that info again - then a
number of options are available... keep the info on the server, keep the
info in some hidden place on the page, keep the onfo in the url, keep
the info in a cookie...

--
Posted via a free Usenet account from http://www.teranews.com

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
change url string without reloading page chadsmith76@gmail.com Javascript 2 06-20-2006 07:54 PM
check value in server without reloading all the page Daylor ASP .Net 1 11-22-2004 03:49 AM
getting records without reloading the page Richard ASP .Net 3 07-22-2004 06:48 PM
Updating data without reloading the page Urs Vogel ASP .Net 2 06-10-2004 07:35 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57