|
Rank: Newbie Groups: Member
Joined: 10/25/2011 Posts: 2
|
Unfortunately, we access the internet by a proxy server: suppose aaa.com, and username, password. At this case, how could we convert the url to PDF file in C# Code? Now there is always errorcode: Failed to convert Url 'http://www.google.com'.(1006:The given remote host was not resolved.)Quote: string url = "http://www.google.com"; if (url.Trim() == string.Empty) { return; } //Convert the Url to PDF try { HtmlToPdf.Options.PageSize = PdfPageSizes.A4;
HtmlToPdf.ConvertUrl(url, "test.pdf"); } catch (HtmlToPdfException ex){ if (ex.Source != null) Console.WriteLine( "\nMessage ---\n{0}", ex.Message ); Console.WriteLine( "\nHelpLink ---\n{0}", ex.HelpLink ); Console.WriteLine( "\nSource ---\n{0}", ex.Source ); Console.WriteLine( "\nStackTrace ---\n{0}", ex.StackTrace ); Console.WriteLine( "\nTargetSite ---\n{0}", ex.TargetSite ); }
|
|
Rank: Newbie Groups: Member
Joined: 10/25/2011 Posts: 2
|
Anybody knows that? The EO.PDF doesn't support the case with Internet Proxy and username/password???
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
No. Unfortunately we do not support proxy with user name/password. Very very few people use that in this age of the Internet. So it's not been supported in the current version.
Thanks
|
|
Rank: Member Groups: Member
Joined: 1/11/2012 Posts: 27
|
Hi,
I just had the same issue unfortunately. I was interested in the note above about proxies becoming less common. My experience is that HTTP proxies are probably more common than ever in corporate environments - any web browsing done in my company (6000+ employees) is done via a proxy which uses your domain user and password to access any external content. Internal (intranet) traffic bypasses the proxy. I wouldn't say I've seen how hundreds of companies do it, but I've seen over a dozen and most use some kind of gateway so they can filter inappropriate content, restrict social networking sites, virus check downloaded files etc. My company uses Microsoft Forefront threat management gateway (http://en.wikipedia.org/wiki/Microsoft_Forefront_Threat_Management_Gateway) which is a common one.
Normally the proxy details would be specified like this: Proxy Server = ausisa01 Port = 8080 user = mylogin (or domain\mylogin) password = mypassword bypassproxy: localhost, 127.0.0.1
It's a bit of a pickle because I'd done my testing on a local HTML file thinking the change to a URL would be trivial. Now I've shifted it to a real web page I can't actually go live! If at all possible I'd appreciate this being considered :)
Thanks for listening!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Thank you very much for the feedback. We can not guarantee that we will implement it at this point but these are very important information for us and we will certainly look into this issue again.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 1/11/2012 Posts: 27
|
Hi,
Thanks for the note. Now that I've registered EO.Pdf and need to go live with my work project, I will need to work around this for the moment or I'll be in trouble. Do you have any suggestions on how I might get the page separately and reprocess the resources so they have local links so I can convert it? Is there another EO product (in the web range etc) that might assist?
Otherwise, if you could let me know roughly how long until you can advise whether this feature would be implemented or not I can advise my team when the project will be up and running. It can probably wait a month or so.
Many thanks!
Mark
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We do not have a firm date now. This is more than just a few lines of code so it is not something that the first day you raise the issue the second date we will give you a firm commitment. Even if we commit to this feature, I do not believe it will be ready within a month. So I would recommend you to plan with your network administrator ahead about this. There is currently no way to support proxy through the conveter.
Thanks
|
|
Rank: Member Groups: Member
Joined: 1/11/2012 Posts: 27
|
Fair enough :) I will try to work out some code to remap the resources locally and read them off disc. Thanks for the reply.
Mark
|
|