This discussion is archived
1 Reply Latest reply: Nov 6, 2012 6:35 AM by Alian RSS

Programatically download files from WebDAV

958834 Newbie
Currently Being Moderated
Hi,

We have a requirement to download files programmatically from webDAV system. Any one please suggest some methods or share any sample code for doing this task.

Thanks in advance.

Regards,
Nithyarajan M
  • 1. Re: Programatically download files from WebDAV
    Alian Newbie
    Currently Being Moderated
    You can use UTL_HTTP. You must construct an HTTP header in a UTL_HTTP.req object and then receive the response in a UTL_HTTP.resp object

    ...
    request UTL_HTTP.req := NULL;
    response UTL_HTTP.resp := NULL;

    /*
    Prepare your header
    */

    UTL_HTTP.write_text(request, message);
    response := UTL_HTTP.get_response(request);
    ...

    I have a sample using web services, later I will prepare a more elaborated sample, but by now you can research on this direction.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points