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

MPower Badge Now Available
Customers attending MPower can earn a community badge. Check into the MPower forum and say hi to have the badge awarded to your community profile.