Skip to Content
author's profile photo Former Member
Former Member

Extrat the HTML Body

Hello

Can anyone point me in the direction of a FM or class which I can use to get the hml body of a webpage using the url as a parameter.

Thanks

Andrew

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 11:21 AM

    Hi Andrew,

    I am no BSP extract but if you look at report RSHTTP01 in SE38 you will see that there is a sub-routine called WRITE_DOCUMENT . This sub-routine makes a call to client->response->get_cdata which returns a STRING. I think this will be the HTML you are looking for.

    I have not tried this but it looks like it will do what you need.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 11:22 AM

    Hi Andrew,

    I am no BSP extract but if you look at report RSHTTP01 in SE38 you will see that there is a sub-routine called WRITE_DOCUMENT . This sub-routine makes a call to client->response->get_cdata which returns a STRING. I think this will be the HTML you are looking for.

    I have not tried this but it looks like it will do what you need.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2007 at 07:07 AM

    if you are on a version lower than was6.10 you can use HTTP_GET function module for the same.

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.