cancel
Showing results for 
Search instead for 
Did you mean: 

Webgateway - Basic string rule question

Jump to solution

Hello.

I have a block rule. The webgateway gets back from the Header Authorization the value "Basic ####"

I want to remove the "Basic" word/expression from the Header Authorization value because the webgateway cant translate the base64 into string if the value has a "basic" word in it.

How can i do that? (remove the basic word from the value)

thanks,

i attach a screenshot to this question:

1 Solution

Accepted Solutions
Reliable Contributor btlyric
Reliable Contributor
Report Inappropriate Content
Message 2 of 4

Re: Webgateway - Basic string rule question

Jump to solution

You should be able to do something like:

String.Base64DecodeAsText (String.ReplaceFirstMatch (Header.Get ("Authorization"), regex(Basic\ (.*)), "\1"))

3 Replies
Reliable Contributor btlyric
Reliable Contributor
Report Inappropriate Content
Message 2 of 4

Re: Webgateway - Basic string rule question

Jump to solution

You should be able to do something like:

String.Base64DecodeAsText (String.ReplaceFirstMatch (Header.Get ("Authorization"), regex(Basic\ (.*)), "\1"))

Re: Webgateway - Basic string rule question

Jump to solution

Thank you. The rule had to be modified a little bit but it helped a lot.

McAfee Employee sbluemel
McAfee Employee
Report Inappropriate Content
Message 4 of 4

Re: Webgateway - Basic string rule question

Jump to solution

Hello,

MWG can decode such values. Please see for all steps:

Regards,

Stefan

ePO Support Center Plug-in
Check out the new ePO Support Center. Simply access the ePO Software Manager and follow the instructions in the Product Guide for the most commonly used utilities, top known issues announcements, search the knowledgebase for product documentation, and server status and statistics – all from within ePO.