国产老熟女高潮毛片A片仙踪林,欧美喂奶吃大乳,狠狠爱无码一区二区三区,女神的私人医生动漫免费阅读

新聞建站cms系統、政府cms系統定制開發

廣州網站建設公司-閱速公司

asp.net新聞發布系統、報紙數字報系統方案
/
http://www.tjsimaide.com/
廣州網站建設公司
您當前位置:首頁>網站技術

網站技術

https網站訪問iframe下的http內容

發布時間:2020/11/10 14:48:52  作者:Admin  閱讀:1887  

廣告:

如何在https站點的iframe中允許http內容:

解決方案:新建一個代理頁面HttpsPage.aspx,在服務器中訪問http內容(少數有效)

前端代碼:

<%string weixinpay="";
if (ViewData["weixinpay"]!=null)
weixinpay= ViewData["weixinpay"].ToString();
string ifaurl=payApi+"weixinpay.aspx?body="+weixinpay;
if (Request.Url.ToString().ToLower().Contains("ttps://"))
ifaurl=webd+"Jqueryfile/HttpsPage.aspx?url="+ifaurl+"&http="+payApi; %>

<div class="code_pic" id="showWechatUrl"><iframe src="<%=ifaurl%>" frameborder="0" scrolling="no"></iframe></div>

后端代碼:

string url = "";
if (Request.QueryString["url"] != null)
url = Request.QueryString["url"].ToString();
string http = "";  //相對網址轉為 http互聯網網址
if (Request.QueryString["http"] != null)
http = Request.QueryString["http"].ToString();
if (url != "")
{

//Response.Write(url);
string res = HttpService.Get(url);

Regex Areareg3 = new Regex(@"src=""(.*?)""", RegexOptions.IgnoreCase | RegexOptions.Compiled);
res = Areareg3.Replace(res, "src=\""+http+"$1\"");

Regex Areareg2 = new Regex(@"href=""(.*?)""", RegexOptions.IgnoreCase | RegexOptions.Compiled);
res = Areareg2.Replace(res, "href=\"" + http + "$1\"");
Response.Write(res);
}
Response.End();

廣告:

相關文章
https
iframe
cms新聞系統購買咨詢
掃描關注 廣州閱速軟件科技有限公司
掃描關注 廣州閱速科技
主站蜘蛛池模板: 屯门区| 连州市| 乌兰浩特市| 黄陵县| 荥经县| 治县。| 康平县| 长葛市| 陇川县| 荔浦县| 镇安县| 磴口县| 洛浦县| 金秀| 崇义县| 定边县| 达日县| 龙川县| 石棉县| 平安县| 安国市| 恩平市| 扎赉特旗| 泸州市| 夏津县| 佛坪县| 滦平县| 永和县| 富民县| 酒泉市| 通州区| 缙云县| 大英县| 伊宁县| 崇阳县| 湛江市| 米泉市| 临猗县| 远安县| 榕江县| 眉山市|