기본 인증이 필요한 타사 공급 업체에 연결하려고합니다. 기본적으로 html/js/css를 다운로드하고 내 웹 사이트에서 콘텐츠를 볼 필요가 있습니다. 아래 코드를 사용하여 사이트에 이미 연결할 수 있습니다. 문제는 아래의 내용이 다른 도메인과 관련된 js 및 css를 참조하며 기본 인증 자체도 필요하다는 것입니다. 올바른 단계처럼 보이는 'resolveUrl'설정을 시도했지만 기본 인증 블록을 통과 할 수 없습니다. 내가이 문제에 관해 얻을 수있는 모든 도움에 감사드립니다.ColdFusion의 기본 인증
<cfscript>
httpService = new http();
httpService.setURL("https://example.com");
httpService.setMethod("GET");
httpService.setUsername("someusername");
httpService.setPassword("somepassword");
httpService.setResolveUrl(true);
prefix = httpService.send().getPrefix();
fileContent = prefix.fileContent;
writeOutput(fileContent);
</cfscript>