Web Interface on NetScaler Support for Mobile Devices

  • CTX133790
  • Created onMar 26, 2014
  • Updated onApr 14, 2014
Article Topic Other

Symptoms or Error

Users are unable to start applications using Safari Browser. They receive launch.jsp instead of launch.ica which automatically associates with the ICA client.


There are some generic rewrite policies which support the following platforms:

  • iPhone Receiver
  • iPad Receiver
  • Android Receiver
  • Blackberry Receiver
  • Mac Receiver
List of generic rewrite actions
  • add rewrite action replaceLocationJspToIca replace "HTTP.RES.HEADER(\"Location\").REGEX_SELECT(re#/site/launch.jsp#)" "\"/site/launch.ica\"" -bypassSafetyCheck YES
  • add rewrite action replaceLaunchUrlIcaToJsp replace "HTTP.REQ.URL.PATH.REGEX_SELECT(re#/site/launch.ica#)" "\"/site/launch.jsp\"" -bypassSafetyCheck YES
  • add rewrite action replaceContentType replace "HTTP.REQ.HEADER(\"Content-Type\")" "\"application/x-www-form-urlencoded\"" -bypassSafetyCheck YES
  • add rewrite action insertXmlDocument insert_before "HTTP.REQ.BODY(6).SUBSTR(0,1)" "\"xmlDocument=\"" -bypassSafetyCheck YES
  • add rewrite action replace_launch_jsp_in_body replace "http.RES.BODY(5000).REGEX_SELECT(re#launch[.]jsp#)" "\"launch.ica\""
List of generic rewrite policies
  • add rewrite policy rw_wi_302_by_ipad_iphone "(HTTP.RES.STATUS.EQ(302) || HTTP.RES.STATUS.EQ(200)) && HTTP.REQ.URL.SUFFIX.EQ(\"jsp\") && (HTTP.REQ.HEADER(\"User-Agent\").CONTAINS(\"iPad\") || HTTP.REQ.HEADER(\"User-Agent\").CONTAINS(\"Safari\") || HTTP.REQ.HEADER(\"User-Agent\").CONTAINS(\"iPhone\")) && HTTP.RES.HEADER(\"Location\").CONTAINS(\"/site/launch.jsp?CTX_UID=\")" replaceLocationJspToIca
  • add rewrite policy rw_wi_launch_ica_by_ipad_iphone "HTTP.REQ.URL.SUFFIX.EQ(\"ica\") && (HTTP.REQ.HEADER(\"User-Agent\").CONTAINS(\"iPad\") || HTTP.REQ.HEADER(\"User-Agent\").CONTAINS(\"Safari\") || HTTP.REQ.HEADER(\"User-Agent\").CONTAINS(\"iPhone\")) && HTTP.REQ.URL.PATH_AND_QUERY.CONTAINS(\"/site/launch.ica?\") && HTTP.REQ.HEADER(\"Cookie\").CONTAINS(\"JSESSIONID=\")" replaceLaunchUrlIcaToJsp
  • add rewrite policy rw_wi_posthdr_by_receiver "HTTP.REQ.METHOD.EQ(POST) && HTTP.REQ.URL.SUFFIX.EQ(\"jsp\") && (HTTP.REQ.URL.PATH_AND_QUERY.ENDSWITH(\"enum.jsp\") || HTTP.REQ.URL.PATH_AND_QUERY.ENDSWITH(\"launch.jsp\")) && HTTP.REQ.BODY(6).STARTSWITH(\"<?xml \")" replaceContentType
  • add rewrite policy rw_wi_postbody_by_receiver "HTTP.REQ.METHOD.EQ(POST) && HTTP.REQ.URL.SUFFIX.EQ(\"jsp\") && (HTTP.REQ.URL.PATH_AND_QUERY.ENDSWITH(\"enum.jsp\") || HTTP.REQ.URL.PATH_AND_QUERY.ENDSWITH(\"launch.jsp\")) && HTTP.REQ.BODY(6).STARTSWITH(\"<?xml \")" insertXmlDocument
  • add rewrite policy rw_wi_200_by_ipad_iphone "HTTP.RES.STATUS.EQ(200) && HTTP.REQ.URL.CONTAINS(\"launcher.jsp\") && (HTTP.REQ.HEADER(\"User-Agent\").CONTAINS(\"iPad\") || HTTP.REQ.HEADER(\"User-Agent\").CONTAINS(\"Safari\") || HTTP.REQ.HEADER(\"User-Agent\").CONTAINS(\"iPhone\")) " replace_launch_jsp_in_body

Problem Cause

The iPad/iPhone support option in Web Interface on NetScaler Wizard is applicable only with iPad and iPhone.
When users try to start applications from other mobile devices or from the Safari Browser from Windows or Macintosh computers after enabling this option, they get launch.jsp instead of launch.ica.

Applicable Products

Automatic translation

Important: This article was translated by an automatic translation system (also referred to as Machine Translation, or MT) and has not been translated or reviewed by people. Citrix offers a machine translated version of this article to allow for greater access to the support content. However, automatic translation is not always perfect and may contain errors of vocabulary, syntax or grammar. Citrix is not responsible for inconsistencies, errors or damage incurred as a result of the use of MT articles from our customers.Thank you.
Click here to see the English version of this article.
Was this helpful?
Thank you for your feedback

Share your comments or find out more about this topic

Citrix Forums