Rewrite header. How insert space to replacement-string

Topics: Developer Forum, User Forum
May 20, 2011 at 4:50 PM
Edited May 20, 2011 at 4:50 PM

Hi,

I try to rewrite header like this:

RewriteHeader User-Agent: .* Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)

But it's not working, because spaces are used. So, how can I insert space to header string?

Thanks
Thor

Coordinator
May 22, 2011 at 7:48 PM

hmm I don't know - have you tried using the url-encoded form?  like replacing spaces with %20?

 

May 23, 2011 at 8:45 AM

Hi,

Yes, I tried to use %20, +, and ", but it's not helped.
Additionally, I played with UrlDecoding parameter, but result the same.

Thanks
Thor

Aug 7, 2014 at 9:18 PM
Hi Thor,

Did you ever find a way to do this? I just ran into the same problem.

Thank you.
  Lee
Oct 7, 2014 at 6:43 AM
I don't suppose anyone has had any luck with this. I've tried all sorts of combinations of escape characters, but can't seem to find anything that works.