title: How to give Username and password when calling HTTP page?
body: <p>I have this code when i run this I get credentials error. How to give credentials .The authentication is set to windows in the https page. Means pop up will appear to get the credentials</p>
  
  <pre><code>declare
        req    UTL_HTTP.REQ;
        resp   UTL_HTTP.RESP;
        value  varchar2(1024);
        p_url  varchar2(4000);
        OPT    varchar2(1000);
      BEGIN
        dbms_output.put_line('');
        p_url:='http://www.xyz.com/';
  
        dbms_output.put_line(p_url);
        req := UTL_HTTP.begin_REQUEST(p_url);
        utl_http.set_header(req, 'User-Agent', 'Mozilla/4.0');
  
        resp := utl_http.get_response(req);
        loop
           utl_http.read_line(resp, value, true);
           dbms_output.put_line(value);
        end loop;
  
      exception
          when utl_http.end_of_body then
             utl_http.end_response(resp);
      END;
  </code></pre>
  
  <p>When i run this i get</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/&gt;
  &lt;title&gt;401 - Unauthorized: Access is denied due to invalid credentials.&lt;/title&gt;
  &lt;style type="text/css"&gt;
  </code></pre>