Skip to content

Commit

Permalink
Test with secureProtocol.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBone committed Jul 9, 2018
1 parent 92d2461 commit 8da9981
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scraper.js
Expand Up @@ -177,7 +177,14 @@ return;
function function2() {
console.log("Running function2");
https.globalAgent.options.ca = sslRootCas;
https.get(DevelopmentApplicationsUrl, res => {
const options = {
hostname: "www.burnside.sa.gov.au",
port: 443,
path: "Planning-Business/Planning-Development/Development-Applications/Development-Applications-on-Public-Notification",
method: "GET",
secureProtocol: "TLSv1_method"
};
https.request(options, res => {
console.log('statusCode:', res.statusCode);
console.log('headers:', res.headers);
res.on('data', (d) => {
Expand Down

0 comments on commit 8da9981

Please sign in to comment.