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:

0 Kudos
1 Solution

Accepted Solutions
btlyric
Level 12

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
btlyric
Level 12

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.

0 Kudos
sbluemel
Level 9

Re: Webgateway - Basic string rule question

Jump to solution

Hello,

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

Regards,

Stefan

0 Kudos