I'm using Winnovative PDF Converter to generate PDF files from HTML (URL)
When triggering a button on a HTTP web page, to generate a PDF from a HTTP URL, this works fine.
However when triggering a button on a HTTPS web page, to generate a PDF from a HTTP URL, I get the error:
Could not render the url. Could not get image from url.Navigation
timeout..
Why is this happening and how can I prevent it?
Please Note: I'm not getting an error when generating a PDF of a HTTPS page, I'm getting an error when making a web request from a HTTPS page to generate a PDF
Related
I am currently working on an ASP.NET Core application with Razor pages. The API endpoints are hosted in pre-production server. When I get an image link which is stored in the same server as the apis, through api, and want to display it in the razor page the image can't be shown due to ERR_SSL_PROTOCOL_ERROR. When I inspect element and get the src of the image tag and open it in a new tab it will open. Also if I use that source in a html page it still opens. Since the pre-production server does not have ssl certificate configured, is there any chances the PageModel abstract class of the razor page to have any validation on that, since it is working on plain html?
EDIT:
I am providing from the API the image tag as html:
<a href ="http://imagesourceIPExample">
<img src="http://imagesourceIPExample">
</a>
I am getting that string from an ajax request
$.ajax({
//ajax call params,
success: function(data){
$(`#messageDiv`).append(data.message);
}
}).
Now when I inspect the page and click the link in the anchor tag I would open fine. Also if I click it from the view. But the image isn't showing and the console shows that SSL_PROTOCOL_ERROR. And image link is http.
First of all, razor PageModel doesn't validate image loading.
It seems like you are working with secured https site and then when you append plain http image links, browser refuses to load them due to its Mixed Content policy. But when you load image in a separate window it will load just fine because the "mixed content" problem is gone, you load only http resource, no https involved.
Consider converting you image links to https, it should fix the problem.
I have a POST request that returns an HTML page with embedded flash
Trying to run it from Paw directly (i.e. choosing 'Web') shows 'Blocked Plug-in'. Is there a way to either unblock this or to open the response in a web browser?
Thanks!
You should be able to right-click on the URL in the response view and hit "Open Link in Web Browser"
I want to write a program where after button click page will be redirected and one pdf file will be download. I am writing the following code under the button click event. but it is showing the error.
Response.TransmitFile("Filename")
Response.Redirect("~/Redirect.aspx")
Response.End()
It is impossible, because file download will get HTTP status 200 (with file in response). Redirect is 301/302, but cannot contain file in response.
Moreover when modern browser receive a file it does not change the current URL.
If you really want to have such effect you have to create something on client side. For example you can use jquery file download which has events after download and on error. More on examples page
I was trying to show Google Plus page for certain place in my AIR application using HTML control but HTML control displays page with error code 400. Same url can be opened in browser without any errors. I have also tried to load content using URLLoader and got same error 400.
What can be different between browser and AIR? Is it possible that Goole can detect out of browser http requests and prevent them?
The website may be blocking the following:
Frame attempts
Specific User Agents
Unknown User Agents
References
Are you using a robots.txt File?
Clickjacking Security Advisory
I'm trying to get a page to show a "loading..." message while I create a report and then I'd like to trigger an open / save on the report I've just created.
I can create a static loading page but I don't know how to trigger the open / save dialog.
I could insert an <iframe> but then I would have to save the created report on the server side.
What I'm looking for is a way to just embed the created report into the HTML and let the browser deal with (the report files are Excel and PDF).
Is there a way to do that? I looked at <embed> but it requires a URL, same as <iframe>.
Maybe my best bet is to handle everything in an Http handler and make a first call to generate the report and then do a redirect to display it (and trigger the open / save).
Any ideas?
Are you allowed to use javascript?
You could have javascript on the loading page that either pops up a new window with the report generation or triggers a redirect to the report generation. In the report generation handler you can then set the content-disposition header to force the open/save box.
In the end, I didn't bother with the waiting message. I just point my Silverlight client at the HTTP handler address and wait for it to create it. I had issues with the <embed> tag and the Acrobat Reader plugin (the plugin would time out and not load the report when it was ready) but that doesn't happen at all when the browser waits for the page to load.
So, not an answer but it works.