cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Former Member
Not applicable
Report Inappropriate Content
Message 1 of 4

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

View solution in original post

3 Replies
btlyric
Level 12
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"))

View solution in original post

Former Member
Not applicable
Report Inappropriate Content
Message 3 of 4

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.

sbluemel
McAfee Employee
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

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community