Code: Alles auswählen.
call method client->receive
exceptions http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
others = 4.
Hi Azreal,Azreal hat geschrieben:gerne - lass hören, welche erfahrungen du damit gemacht hast.
Code: Alles auswählen.
data: url type string value '<HTTPS STRING MIT QUERY>
CALL METHOD cl_http_client=>create_by_url
EXPORTING
url = url
PROXY_HOST = '<EUER PROXY>'
PROXY_SERVICE = '<EUER PROXYPORT>'
IMPORTING
client = client
EXCEPTIONS
OTHERS = 1.
client->request->set_header_field( name = '~request_method' value = 'GET' ). "#EC *
****Make the call
client->send( ).
****Receive the Response Object
CALL METHOD client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
OTHERS = 4.
DATA: p_content TYPE string.
****Get the response content in Character format
p_content = client->response->get_cdata( ).