You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Paul Claridge <pa...@vicjenmail.plus.com> on 2017/04/09 18:09:27 UTC
[users@httpd] Apache fails to process a particular user-agent
Hi List - newbie so please be gentle!
I am trying to get a LAMP server (Ubuntu
14.02/PHP5.6/Mysql/CodeIgniter2.2) installation to process a callback
from "WebPurify(callback)" user-agent.
I can see the callback in the access log.
If I paste the callback string into my browser everything works fine and
CI re-routes the URL to the appropriate controller/method and I get my
DB update.
But at the moment I cannot get it to work under the covers. I'm feeling
the user-agent is the key but I cannot find any mention of how to fix
this.
Any help greatly appreciated, thx, Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache fails to process a particular user-agent
Posted by Luca Toscano <to...@gmail.com>.
Hi Paul,
2017-04-09 20:09 GMT+02:00 Paul Claridge <pa...@vicjenmail.plus.com>:
> Hi List - newbie so please be gentle!
>
> I am trying to get a LAMP server (Ubuntu 14.02/PHP5.6/Mysql/CodeIgniter2.2)
> installation to process a callback from "WebPurify(callback)" user-agent.
>
> I can see the callback in the access log.
>
> If I paste the callback string into my browser everything works fine and
> CI re-routes the URL to the appropriate controller/method and I get my DB
> update.
>
> But at the moment I cannot get it to work under the covers. I'm feeling
> the user-agent is the key but I cannot find any mention of how to fix this.
>
> Any help greatly appreciated, thx, Paul
>
the description of the problem is really generic and in order to help we'd
need to know more details like:
1) the httpd config and the httpd version
2) the exact request that is failing
3) access and error log entries of httpd
4) etc..
If you want a more interactive help there is also the awesome #httpd
channel on IRC Freenode.
The only suggestion that I can give to you at the moment is to enable
https://httpd.apache.org/docs/2.4/mod/mod_dumpio.html and inspect what
httpd sees to follow up on your suspicion about the user agent.
Let us know!
Luca
Re: [users@httpd] Apache fails to process a particular user-agent
Posted by Marat Khalili <mk...@rqc.ru>.
Spoof user-agant with cURL
<https://stackoverflow.com/questions/28760694/how-to-use-curl-to-get-a-get-request-exactly-same-as-using-chrome>
or some browser extension
<https://www.google.ru/search?client=ubuntu&channel=fs&q=curl+spoof+user+agent&ie=utf-8&oe=utf-8&gfe_rd=cr&ei=uS7rWO6sGeTk8Ae2ioWYBg#newwindow=1&channel=fs&q=change+user+agent>
and check. I doubt anything in your stack checks user agent though, most
likely your client works incorrectly (i.e. doesn't process redirects).
--
With Best Regards,
Marat Khalili