2008 Jul 16 6:23 PM
Hi Abapers.
I'm writting a program which gets from an URL a XML file which is updated daily. For such purpose, I'm using the function HTTP_GET, which is running properly (through a Proxy Server which recognizes by IP).
As said before, the function is running properly but I'm not receiving the proper file: sometimes, I get the one from the day before and, somehow, it starts to get the newer one. When I call this file, I'm not using any setting for dates or similar because the daily file is available in the same URL.
I've also tested the function from a SAP System which acceses the Internet without a proxy and it gets the proper file in every moment.
So, the question is: Can the Proxy server being caching the file obtained? If not, have you ever got a similar problem similar to the one I'm describing?
More info: I'm using the function HTTP_GET in systems ECC 5.0 and ECC 6.0 in both cases.
Thanks for your helping.
2008 Jul 21 1:36 PM
i use a similar program using cl_http_client class (instead of http_get), (communicating via proxy) and dont have the problems you are mentioning.
i would suggest you to give it a try with this class, as this offers much more flexibility, in setting request headers , form fields, etc
i use a similar program using cl_http_client class (instead of http_get), (communicating via proxy) and dont have the problems you are mentioning.
i would suggest you to give it a try with this class, as this offers much more flexibility, in setting request headers , form fields, etc
2008 Jul 21 1:36 PM
i use a similar program using cl_http_client class (instead of http_get), (communicating via proxy) and dont have the problems you are mentioning.
i would suggest you to give it a try with this class, as this offers much more flexibility, in setting request headers , form fields, etc
2008 Jul 22 5:31 PM
Thanks, Durairaj.
I will try to follow what you suggest to goal it.
Anyway, I've found the solution of the problem I've got: it was due to the proxy configuration which needed an exception rule to retrieve properly the file I try to download.
Would the class you suggest overpass this proxy config or should the rule be implemented as well?
Best Regards.
2008 Jul 23 6:41 AM
is the xml location is in intranet or extranet? if its intranet then you dont need proxy right? in that case, unless you had activated the proxy settings from sicf->client->proxy settings, you dont need to do anything with proxy.
however, if the xml is on a extranet (internet) location , you may have to authenticate yourself via the proxy server to reach it , in such a case, this is what you have to do
call method cl_http_client=>create
exporting
host = 'www.webservicex.net'
service = '80'
scheme = '1'
proxy_host = wf_proxy
proxy_service = wf_port
importing
client = http_client.
http_client->propertytype_logon_popup = http_client->co_disabled.
wf_user = user .
wf_password = password .
call method http_client->authenticate
exporting
proxy_authentication = 'X'
username = wf_user
password = wf_password.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |