如何从https://网站访问http://内容 [英] How do I access http:// content from https:// website

查看:288
本文介绍了如何从https://网站访问http://内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



真的让我很生气,我有很多时间和谷歌无处不回答不。



我需要在我的iframe上访问一个http://www.example.com/chart.aspx,这在我的网站默认页面中都可以正常工作没有ssl但是当我打开ssl我的网站使用https://问题开始iframe停止显示我的图表。



很多谷歌链接告诉我将您的图表更改为https://或添加到网站所在的相同路径,但问题是链接是第三方开发的,他们将向我们收取,因为我不接受。



如果我可以访问我网站的某些部分而不是整个网站,但我不知道如何管理某些网站,我也将不胜感激页面为https://。



为了您的信息,我的网站由Microsoft Visual Studio 2010,Dot Net Version 3.5生成。 我主要使用firefox(阻止内容)访问我的网站,IE(在加载前询问我混合内容是或否选项)



请给我一些方向来处理这个问题。



提前谢谢我知道有一些解决方案



谢谢和注意

Santosh Sawant

Dear Friends,

Its really really making me mad, I have Google lots of time and everywhere answer no no and no.

I need to access one http://www.example.com/chart.aspx on my iframe which is in my website default page all work fine without ssl but when i turn on ssl my site use https:// the issue started iframe stop showing my chart.

Lots of google link tell me to change your chart to https:// or add in same path where the website is located, but issue is the link is third party developed and they will charge us for that which is not accepted by me.

It will also grateful for me if i can access certain part of my website as secure instead of whole website, but don't know how to manage certain pages as https://.

For your information, my website is generated by Microsoft Visual Studio 2010, Dot Net Version 3.5. I am mostly access my website using firefox (Blocking content), IE (Ask me mixed content Yes or No option before loading).

Please give me some direction to handle this issue.

Thanks in advance i know there is some solution.

Thanks and Regard's
Santosh Sawant

推荐答案





假设您使用的是asp.net

(取决于源页面上脚本的复杂性,作为代码隐藏),但如果您只是尝试显示信息,这可能会起作用。



创建一个空白的新asp.net页面
使用后代码中的


Hi

Assuming you are using asp.net
(depending on the complexity of scripts on the source page, as code behind) but if you are simply trying just to display info this might work.

Create a blank new asp.net page
in the code behind use
WebClient webClient = new WebClient();
string htmlString = w.DownloadString("https://www.thatpage.com");





然后使用asp.net response.write命令将整个字符串写入页面然后你现在可以iframe引用你刚刚创建的asp.net页面,它应该显示正常。



Then use the asp.net response.write command to write the entire string into the page then you can now iframe reference the asp.net page you just created and it should display fine.


这篇关于如何从https://网站访问http://内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆