Adobe Dreamweaver Forums



Last 10 THreads :         strange bugs (Last Post : fazstp - Replies : 1 - Views : 5 )           »          ADOBE - Forum search is broken (Last Post : Amy Blankenship - Replies : 1 - Views : 2 )           »          move tab with embedded image (Last Post : Amy Blankenship - Replies : 2 - Views : 3 )           »          Update cross domain policy (Last Post : SoxFan33 - Replies : 3 - Views : 14 )           »          CF8 Help in Dreamweaver CS3 (Last Post : danilocelic AdobeCommunityExpert - Replies : 5 - Views : 6 )           »          Select Checked Out Files Within Folder (Last Post : ben_bloom - Replies : 0 - Views : 1 )           »          Library is missing names from splitter bar (Last Post : a_hayman - Replies : 4 - Views : 5 )           »          pop up blocker jacking my login (Last Post : JoeyD1978 - Replies : 3 - Views : 4 )           »          Help with navigation (Last Post : Jiva Mukta - Replies : 0 - Views : 1 )           »          Why is this not working!!! (Last Post : Boxing Boom - Replies : 3 - Views : 5 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 08-28-2008, 08:42 AM
aSuitableBoy
 
Posts: n/a
Diggs:
Default URLUtil.replaceProtocol

Hello,

I've an application which should only runs in 'https' mode. So, here what I've
done is, I've initiated a protocol check with URLUtil.getProtocol(url), which
returns me 'http' or 'https', then what I want is, to automatically set that
'http' to 'https' from Flex and by without refreshing the browser, I can
proceed to call the other internal functions which runs only with 'https'
protocol. Is it possible..?

I've tried with URLUtil.replaceProtocol(URLUtil.getProtocol(url) , 'https'),
but it not seems working! Maybe its only read-only (?) returning a String? How
can I achieve this process? Is it feasible also?

Please suggest!

Thanks & Regards,

aSB



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-28-2008, 10:13 AM
anirudhs
 
Posts: n/a
Diggs:
Default Re: URLUtil.replaceProtocol

Hi,

URLUtil functions work on a URL string. It cannot perform redirection to a
https url. It will replace http with https in a url. That's all.

Ideally, you should be configuring such redirecting in the web server or on
the worst case, with a blank html page which redirects to the https link.

It is not possible to go from a http to https link without refreshing the
browser or navigating away from the http page.

Reply With Quote
  #3 (permalink)  
Old 08-28-2008, 10:41 AM
aSuitableBoy
 
Posts: n/a
Diggs:
Default Re: URLUtil.replaceProtocol

Hmm thanks for the reply Anirudhs, its helpful to understand the feasibility rather than searching blindly over the net. Thanks!

aSB
Reply With Quote


Reply


Thread Tools
Display Modes

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

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



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 07:56 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk