I've been trying to use the proc http to download a simple html page from one of our internal website. This page requires authentication to access. I've been accessing this page using the wget -O functionality in UNIX, by specifying the user id and password in .netrc file in my home directory.
However, when I try the below code in SAS 9.2, the html page that I get is login page which still asks my credentials to login.
filename in "~/ProxyTest_in";
filename out "~/ProxyTest_out.html";
filename hdrout "~/headerOut.txt";
The header message shows that the response code is 200. However, the html page is not going beyond the login page.
Note: When I copy this link in a browser, it uses my windows authentication and takes me directly to the home page (supasses the login page). Same is the case when I used to do a wget (using .netrc as the authentication mechanism).