fzaninotto / uptime

A remote monitoring application using Node.js, MongoDB, and Twitter Bootstrap.
http://fzaninotto.github.com/uptime/
MIT License
3.62k stars 706 forks source link

How to pass HTTP Options via curl? #336

Open DivyaYash opened 8 years ago

cohaesus-asm commented 8 years ago

Hi Divya,

To send HTTP OPTION request via curl use: curl -X OPTIONS http://...

Regards, Sergio

On 25 November 2015 at 10:14, DivyaYash notifications@github.com wrote:

— Reply to this email directly or view it on GitHub https://github.com/fzaninotto/uptime/issues/336.

-- Sent from the common inbox for Application Support and Maintenance.

Cohaesus - Making Tech Work

+44 207 754 5947 | LinkedIn https://www.linkedin.com/company/cohaesus | www.cohaesus.co.uk

Cohaesus in The Drum http://www.thedrum.com/news/2015/06/01/agency-tech-partner-cohaesus-aims-reinvent-freelance-new-temporary-resourcing

Cohaesus is a trading name of Cohaesus Projects Limited. Our company is registered in the UK, Registration #04920788 .Our registered offices are at: Towngate House, 2-8 Parkstone Road, Poole, BH15 2PW. We are registered for VAT. VAT # GB834044939. All fees mentioned are without VAT. E&OE.

DivyaYash commented 8 years ago

Sorry for not being clear, I already use a command as follows..that configures the URL for monitoring in uptime.. curl -vv -k -i -H "Accept: application/json" -X PUT -d "name=xample" -d "url=http://xyz.com/abc" -d "interval=1" http://uptime.com:8082/api/checks However, I want to set the HTTP Option = rejectUnauthorized: false from the curl command..I am not sure how to do it.. I tried passing -d "http_options=rejectUnauthorized: false" - No luck..

DivyaYash commented 8 years ago

@fzaninotto Can you please confirm if the HTTPOptions can be passed as a parameter via the curl in a API PUT call? Somewhere in below syntax? curl -vv -k -i -H "Accept: application/json" -X PUT -d "name=xample" -d "url=http://xyz.com/abc" -d "interval=1" http://uptime.com:8082/api/checks