Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxypac option not working with URL #263

Closed
sebastien-prudhomme opened this issue Jan 4, 2016 · 9 comments
Closed

Proxypac option not working with URL #263

sebastien-prudhomme opened this issue Jan 4, 2016 · 9 comments
Assignees
Labels
enhancement Enhance existing

Comments

@sebastien-prudhomme
Copy link
Contributor

Providing an URL for the proxypac option is not working in apps::protocols::http::plugin.

UNKNOWN: issue to load proxypac: http://XXX/: No such file or directory

Problem with the way the HTTP/ProxyPAC perl module is used.

The module is waiting for a perl URI reference to use an URL, see the HTTP/ProxyPAC.pm code:

    if (blessed($stuff) && $stuff->isa('URI')) {
        return $class->init( $class->load_uri($stuff) );
    }

So in case of an URL, call the module like this:

$pac = HTTP::ProxyPAC->new(URI->new($options{request}->{proxypac}));
@garnier-quentin
Copy link
Contributor

I think because you don't use the last version: https://metacpan.org/pod/HTTP::ProxyPAC
Try with 0.31.

@sebastien-prudhomme
Copy link
Contributor Author

I'm using 0.31 (RPM perl-HTTP-ProxyPAC downloaded on http://yum.centreon.com/standard/)

@sebastien-prudhomme
Copy link
Contributor Author

@garnier-quentin
Copy link
Contributor

If you do the change, the plugin works ?

@sebastien-prudhomme
Copy link
Contributor Author

It works: CRITICAL: 407 Proxy Authentication Required |

I just need to open a new issue for an option to set proxy username/password :-)

@garnier-quentin
Copy link
Contributor

Can be here :)

garnier-quentin pushed a commit that referenced this issue Jan 5, 2016
@garnier-quentin
Copy link
Contributor

I have done the first fix. I don't see how to do the auth.

@garnier-quentin garnier-quentin added enhancement Enhance existing and removed question labels Jan 5, 2016
@sebastien-prudhomme
Copy link
Contributor Author

It seems that you just only need to add login and password in the proxy URL:

http://search.cpan.org/dist/libwww-perl/lwpcook.pod#PROXIES

@garnier-quentin
Copy link
Contributor

But i'm telling when you are using the pac file. Indeed, it works when you check directly with proxyurl.

@garnier-quentin garnier-quentin self-assigned this Jan 11, 2016
Sims24 pushed a commit that referenced this issue Jul 21, 2021
* enh(reporting): Add a note about service categories

for performance widgets

* typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhance existing
Projects
None yet
Development

No branches or pull requests

2 participants