{"id":214,"date":"2025-10-24T06:45:02","date_gmt":"2025-10-24T04:45:02","guid":{"rendered":"https:\/\/www.silverice.it\/IpercubeTechWP1\/?page_id=214"},"modified":"2025-10-24T10:39:05","modified_gmt":"2025-10-24T08:39:05","slug":"abap-http-functions","status":"publish","type":"page","link":"https:\/\/www.silverice.it\/IpercubeTechWP1\/abap\/abap-http-functions\/","title":{"rendered":"ABAP HTTP Functions"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Managing files in web server via HTTP<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">I wrote these ABAP functions when I had to read\/write from a BSP application a lot of PDF from\/to a SAP Portal used as repository (PDF was stored in KM). Below the ABAP functions which reflect four methods supported by <a href=\"http:\/\/en.wikipedia.org\/wiki\/Hypertext_Transfer_Protocol\" target=\"_blank\" rel=\"noreferrer noopener\">HTTP Protocol<\/a> 1.0 (<em>HEAD, GET, PUT, DELETE<\/em>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using the HTTP 1.1 protocol, an <a href=\"http:\/\/www.webdav.org\/specs\/rfc2518.html\" target=\"_blank\" rel=\"noreferrer noopener\">HTTP Extensions for Distributed Authoring<\/a> (WEBDAV), two additional methods are available (COPY and MKCOL). The web server must support the HTTP 1.1 protocol, but today all of them support this extension. So I completed the job with the functions to copy files and create directories.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using the above functions, I also wrote an additional one to RENAME files in HTTP server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If a web server is WEBDAV enabled, it&#8217;s possible to link custom properties to every file (for example a title, a project code, etc.). For this purpose, I wrote two functions that read and write custom properties.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here the functions:<\/p>\n\n\n<ul class=\"wp-block-page-list\"><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.silverice.it\/IpercubeTechWP1\/abap\/abap-http-functions\/copy-a-file-in-the-same-http-server\/\">HTTP Copy &#8211; Copy a file on the same web server<\/a><\/li><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.silverice.it\/IpercubeTechWP1\/abap\/abap-http-functions\/delete-a-file-on-a-web-server\/\">HTTP Delete &#8211; Delete a file on a web server<\/a><\/li><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.silverice.it\/IpercubeTechWP1\/abap\/abap-http-functions\/get-a-file-from-a-web-server\/\">HTTP Get &#8211; Get a file from a web server<\/a><\/li><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.silverice.it\/IpercubeTechWP1\/abap\/abap-http-functions\/check-file-existence-on-a-web-server\/\">HTTP Head &#8211; Check file existence on a web server<\/a><\/li><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.silverice.it\/IpercubeTechWP1\/abap\/abap-http-functions\/create-a-folder-on-a-web-server\/\">HTTP MkCol &#8211; Create a folder on a web server<\/a><\/li><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.silverice.it\/IpercubeTechWP1\/abap\/abap-http-functions\/get-properties-of-a-file-on-a-web-server\/\">HTTP Properties Get &#8211; Get properties of a file on a web server<\/a><\/li><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.silverice.it\/IpercubeTechWP1\/abap\/abap-http-functions\/set-properties-of-a-file-a-web-server\/\">HTTP Properties Set &#8211; Set properties of a file on a web server<\/a><\/li><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.silverice.it\/IpercubeTechWP1\/abap\/abap-http-functions\/put-a-file-on-a-web-server\/\">HTTP Put &#8211; Put a file on a web server<\/a><\/li><li class=\"wp-block-pages-list__item\"><a class=\"wp-block-pages-list__item__link\" href=\"https:\/\/www.silverice.it\/IpercubeTechWP1\/abap\/abap-http-functions\/rename-a-file-on-a-web-server\/\">HTTP Rename &#8211; Rename a file on a web server<\/a><\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p>Managing files in web server via HTTP I wrote these ABAP functions when I had to read\/write from a BSP application a lot of PDF from\/to a SAP Portal used as repository (PDF was stored in KM). Below the ABAP functions which reflect four methods supported by HTTP Protocol 1.0 (HEAD, GET, PUT, DELETE). Using [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":188,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-214","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.silverice.it\/IpercubeTechWP1\/wp-json\/wp\/v2\/pages\/214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silverice.it\/IpercubeTechWP1\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.silverice.it\/IpercubeTechWP1\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.silverice.it\/IpercubeTechWP1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silverice.it\/IpercubeTechWP1\/wp-json\/wp\/v2\/comments?post=214"}],"version-history":[{"count":19,"href":"https:\/\/www.silverice.it\/IpercubeTechWP1\/wp-json\/wp\/v2\/pages\/214\/revisions"}],"predecessor-version":[{"id":275,"href":"https:\/\/www.silverice.it\/IpercubeTechWP1\/wp-json\/wp\/v2\/pages\/214\/revisions\/275"}],"up":[{"embeddable":true,"href":"https:\/\/www.silverice.it\/IpercubeTechWP1\/wp-json\/wp\/v2\/pages\/188"}],"wp:attachment":[{"href":"https:\/\/www.silverice.it\/IpercubeTechWP1\/wp-json\/wp\/v2\/media?parent=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}