# Adding --insecure option to newman run

**URL:** <https://community.postman.com/t/adding-insecure-option-to-newman-run/8318>\
**Category:** Help Hub\
**Created:** [October 11, 2019, 2:20pm UTC](https://community.postman.com/t/adding-insecure-option-to-newman-run/8318 "2019-10-11T14:20:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishnandoss08](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@krishnandoss08](https://community.postman.com/u/krishnandoss08)\
**Post date:** [October 11, 2019, 2:20pm UTC](https://community.postman.com/t/adding-insecure-option-to-newman-run/8318/1 "2019-10-11T14:20:23Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

Hi what needed to be passed for running newman with --insecure option. or how to pass this

```
newman.run({
  // run options go here
  	collection: 'SIA_MTM_FUNCTIONAL_TEST_SCRIPTS_Chuncks1_NewDB_Dev_Mzr.postman_collection.json',
    environment:'SIA_NewDB_Dev_Mzr.postman_environment.json',	
	 "reporters": "htmlextra",
    "reporter": { "htmlextra": {"export": "SIA_Testcases_Report.html"} }
}, function (err, summary) {
  // handle collection run err, process the run summary here
}).on('request', function (err, execution) { // This is triggered when a response has been recieved
   if (err) { return console.error(err); }
    const fileName = testCaseArray[i]+'-foo.bl';
   fs.writeFile(fileName, execution.response.stream, function (error) {
      if (error) { console.error(error); }
      i++;
   });
});

```

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [October 11, 2019, 3:43pm UTC](https://community.postman.com/t/adding-insecure-option-to-newman-run/8318/2 "2019-10-11T15:43:58Z")

</div>

Hey @krishnandoss08

It looks like you have a few of the keys wrapped in quotes, these should look more like this:

```
newman.run({
    collection: "SIA_MTM_FUNCTIONAL_TEST_SCRIPTS_Chuncks1_NewDB_Dev_Mzr.postman_collection.json",
    environment: "SIA_NewDB_Dev_Mzr.postman_environment.json",	
    reporters: ["htmlextra"],
    reporter: { 
        htmlextra: 
            {
                export: "SIA_Testcases_Report.html"
            } 
    },
    insecure: true
});

```

I’ve also included the `insecure` flag in the script.

---

<div class="post-metadata">

**Author:** ![krishnandoss08](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@krishnandoss08](https://community.postman.com/u/krishnandoss08)\
**Post date:** [October 12, 2019, 7:43am UTC](https://community.postman.com/t/adding-insecure-option-to-newman-run/8318/3 "2019-10-12T07:43:00Z")

</div>

@danny-dainton thx for the usage . How ever it did not work .I got the following response

  

> | |
> | 
> 
> - [w3](http://w3.ibm.com/)
> 
> _IBM CIO - Global Infrastructure - Network Security_
> 
> # IBM Cybersecurity
> 
> **Internet Gateway - BlueICE Bangalore - mpribmis20**
> 
> # We’re sorry. Access to this web site is blocked.
>   
> 
> The site you’re trying to reach at **sia-external-stable.dev-mzr-dallas.us-south.containers.appdomain.cloud** is categorized as and blocked by IBM implemented policy.
> 
>   
> 
> web sites may expose IBM to security risks that could compromise IBM systems or result in data loss. Visiting sites like these may also violate the IBM Business Conduct Guidelines.
> 
>   
> 
> **Here are some suggestions:**
> 
>   
> 
> 1. Make sure the URL is correct. Many blocked requests are due to typos, misplaced hyphens, or incorrect domain names (i.e. .com, .net, .org).
>   
> 2. [Contact  
> Help@IBM](https://w3.ibm.com/help/)
> 
>   
> 3. [Blocked  
> web site  
> instructions](https://w3.ibm.com/help/#/article/39523)
> 
> ## Footer links
> 
> - [Terms of use](http://w3.ibm.com/w3/info_terms_of_use.html)
> 
> |
> | |
> | |

BTW i was able to get a API response saved as json file . Is there any further diagnosis needed to trouble shoot this. Please note that with the postman i able to get a response properly. Tx K.thulsi
