1. 程式人生 > 實用技巧 >A new ABAP HTTP test client RSICFCLTST01

A new ABAP HTTP test client RSICFCLTST01

report RSICFCLTST01

  1. create a new test session using ways of URL by url:
    you have to specify url,proxy host andport number. Select created http session after “create” icon is pressed, then click tab Detail:

clipboard1

  1. execute CL_HTTP_CLIENT~send method,ensure sy-subrc = 0:

clipboard2

Then perform CL_HTTP_CLIENT~receive:

clipboard3

Once execution is done successfully, response is available to review:

clipboard4
clipboard5

execute GET_CDATA方法 to get returned text stream ( String ):

clipboard6

Utility tab contains many useful utility method provided by CL_HTTP_UTILITY~utility:( used for encode and decode url )

clipboard7

要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":