You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by alchemist vk <al...@gmail.com> on 2020/07/30 12:37:22 UTC
[users@httpd] apache config check for non available field in request
Hi All,
Consider the request curl -vk -X POST -H "Del-Auth: abcd" '
127.0.0.1/test/newuser' where I intentionally wont provide content type
header for new user creation.
While trying to write apache config file to check the presence of
content-type field in request header, I am not able to do it..
Please help me in checking presence of header via config file.
Tried as *RewriteCond %{HTTP:Content-Type} ' ' *, but it didnt work..
Thanks in advance
A
Re: [users@httpd] apache config check for non available field in request
Posted by alchemist vk <al...@gmail.com>.
Thanks Eric for your response.
Your suggestion :
RewriteCond %{HTTP:Content-Type} '"" worked like a charm..
You made my day.. Thanks you again..
With Regards,
A
On Thu, Jul 30, 2020 at 6:28 PM Eric Covener <co...@gmail.com> wrote:
> On Thu, Jul 30, 2020 at 8:38 AM alchemist vk <al...@gmail.com>
> wrote:
> >
> > Hi All,
> > Consider the request curl -vk -X POST -H "Del-Auth: abcd" '
> 127.0.0.1/test/newuser' where I intentionally wont provide content type
> header for new user creation.
> >
> > While trying to write apache config file to check the presence of
> content-type field in request header, I am not able to do it..
> >
> > Please help me in checking presence of header via config file.
> >
> > Tried as RewriteCond %{HTTP:Content-Type} ' ' , but it didnt work..
>
> Without testing, I would write either ="" or ^$. Do either work? If
> not, LogLevel rewrite:trace8 will help debug.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] apache config check for non available field in request
Posted by Eric Covener <co...@gmail.com>.
On Thu, Jul 30, 2020 at 8:38 AM alchemist vk <al...@gmail.com> wrote:
>
> Hi All,
> Consider the request curl -vk -X POST -H "Del-Auth: abcd" '127.0.0.1/test/newuser' where I intentionally wont provide content type header for new user creation.
>
> While trying to write apache config file to check the presence of content-type field in request header, I am not able to do it..
>
> Please help me in checking presence of header via config file.
>
> Tried as RewriteCond %{HTTP:Content-Type} ' ' , but it didnt work..
Without testing, I would write either ="" or ^$. Do either work? If
not, LogLevel rewrite:trace8 will help debug.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org