Welcome Guest Search | Active Topics | Sign In | Register

[HtmlToPdf.ConvertUrl ] How could we deal with the Internet Proxy ? Options
Woniuniu
Posted: Tuesday, October 25, 2011 2:46:15 AM
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 );
}
Woniuniu
Posted: Tuesday, October 25, 2011 5:58:12 AM
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???


eo_support
Posted: Tuesday, October 25, 2011 8:33:54 AM
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
glinkot
Posted: Tuesday, January 31, 2012 6:24:30 PM
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!
eo_support
Posted: Tuesday, January 31, 2012 6:58:18 PM
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!
glinkot
Posted: Thursday, February 2, 2012 1:01:28 AM
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
eo_support
Posted: Thursday, February 2, 2012 9:03:29 AM
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
glinkot
Posted: Thursday, February 2, 2012 3:36:05 PM
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.