Reading the HTTP Body

Reading the HTTP Body

  
Is there an extension that you can use to read the HTTP body and phase the content into a variable?

Example:
When the following page is loaded http://domain1.com/WebScreen.aspx
It displays the following plaintext in the html body.

item1=abc&item2=xyz

How do you have outsystem load http://domain1.com/WebScreen.aspx and read the plaintext item1=abc&item2=xyz and assign the value into a variable.




Hi Robert,

Extension HTTPRequestHandler (packed with the Enterprise Manager solution) has some actions asGetRequestContent, GetRequestFiles, GetRequest_AddArgument, etc. Are these enhouth?


Regards,
João Portela
GetRequestContent would get content  from an external page, http://site.com/contentpage.aspx

?
Hi,

I think GetRequestContent will retrun the content of the current request.

If you want to get the body of "other" request, can't you use RichMail.HttpGet() to get the entire response and strip the body part?


Regards,
João Portela
I don't understand what you trying to achieve?

Is it possible to place it in a named div?

The content you are reading looks like url-parameters, so why is it in the body?

@João thanks that works!

@Joost it needs to be done this way, to follow the specification provided.