Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass HTTP Options via curl? #336

Open
DivyaYash opened this issue Nov 25, 2015 · 3 comments
Open

How to pass HTTP Options via curl? #336

DivyaYash opened this issue Nov 25, 2015 · 3 comments

Comments

@DivyaYash
Copy link

No description provided.

@cohaesus-asm
Copy link

Hi Divya,

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

Regards,
Sergio

On 25 November 2015 at 10:14, DivyaYash [email protected] wrote:


Reply to this email directly or view it on GitHub
#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
Copy link
Author

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
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants