phpCAS icon indicating copy to clipboard operation
phpCAS copied to clipboard

Set User Agent

Open Fydon opened this issue 2 years ago • 2 comments

Application firewalls tend to block HTTP requests without any User Agent set. I could change this a you would prefer, but the User Agent must be set.

Fydon avatar Jun 24 '22 14:06 Fydon

CURL does have a default user agent - that one might be what's causing some firewall unhappy.

Do we want to attach the phpCAS library version with the user agent string, which seems to be a regular practice?

phy25 avatar Jun 24 '22 14:06 phy25

Thank you for your quick response. In my experience, PHP curl does not have a default user agent for web requests. It seems from this RFC that it is proposed for PHP 8.2.

Fydon avatar Jun 24 '22 14:06 Fydon

How would you like to proceed with this? I think I've added the library version correctly.

Fydon avatar Aug 15 '22 11:08 Fydon

Thanks @Fydon for your contribution

jfritschi avatar Aug 16 '22 07:08 jfritschi