0
Views
5
Comments
Reading the HTTP Body
Question
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 https://domain1.com/WebScreen.aspx
It displays the following plaintext in the html body.

item1=abc&item2=xyz

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



2024-04-05 15-02-07
João Portela
Staff

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
2018-03-08 20-43-12
Robert Chanphakeo
GetRequestContent would get content  from an external page, https://site.com/contentpage.aspx

?
2024-04-05 15-02-07
João Portela
Staff
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
2016-04-21 20-09-55
J.
 
MVP
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?

2018-03-08 20-43-12
Robert Chanphakeo
@João thanks that works!

@Joost it needs to be done this way, to follow the specification provided.
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.