cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 7
Report Inappropriate Content
Message 1 of 5

Control content in POST command

Jump to solution

Hi,

I have a requirement where users should post data only to specific users for which i need to check the content within the HTTP Post.

Firebug output:

POST

Parameters:      application/x-www-form-urlencoded

authenticity_token5354f0ba1bfb4f5e469906538d994f49dceb5ed1
in_reply_to_status_id309208394538053632
place_id
status@ABC testing. pls ignore

Source

authenticity_token=5354f0ba1bfb4f5e469906538d994f49dceb5ed1&in_reply_to_status_id=309208394538053632&place_id=&status=%40ABC+testing.+pls+ignore

In the above i can check which request contains post data using "command.name = post" and find out the parameters that exist in it using "command.parameters = status".

Can we go a level deeper and check if the status parameter contains @ABC withiin the request?

Regards,

Satbir

1 Solution

Accepted Solutions
Highlighted
Level 11
Report Inappropriate Content
Message 4 of 5

Re: Control content in POST command

Jump to solution

You can use regular expression against Body.Text property, especially if you combine it with Body.MimeTypeEnsured == "application/x-www-url-encoded"

View solution in original post

4 Replies
Highlighted
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 5

Re: Control content in POST command

Jump to solution

I havent tested this, but I think URL.GetParameter("status") matches "*abc* would work. If it doesnt it may only apply to GET parameters rather than POST parameters.

Best,

Jon

Highlighted
Level 7
Report Inappropriate Content
Message 3 of 5

Re: Control content in POST command

Jump to solution

Actually, the POST doesn't show in URL. I am trying to achieve controls on twitter and @ABC (i used as example eariler) is a twitter handle. It uses Javascript to create tweets. Requirement is users should tweet only to their organisation page of twittertwitter post.png

Highlighted
Level 11
Report Inappropriate Content
Message 4 of 5

Re: Control content in POST command

Jump to solution

You can use regular expression against Body.Text property, especially if you combine it with Body.MimeTypeEnsured == "application/x-www-url-encoded"

View solution in original post

Highlighted
Level 7
Report Inappropriate Content
Message 5 of 5

Re: Control content in POST command

Jump to solution

It worked! Thanks!

I made the rule little more specific by adding URL property along with ensured media type and body.text.

Regards,

Satbir

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