Got the answer HERE for windows, it says there that:
curl -XPUT 'http://localhost:9200/api/twittervnext/tweet'
Woops, first try and already an error:
curl: (1) Protocol 'http not supported or disabled in libcurl
The reason for this error is kind of stupid, Windows doesn’t like it when you are using single quotes for commands. So the correct command is:
curl –XPUT "http://localhost:9200/api/twittervnext/tweet"
Related Posts:
- 400 Bad Request – request header or cookie too large
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- Why Puma listen on ‘tcp://localhost:3000’ instead of ‘http://localhost:3000’
- Explain what " means
- Why does Ruby on Rails use http://0.0.0.0:3000 instead of http://localhost:3000?
- ActionController::InvalidAuthenticityToken
- bundle install returns “Could not locate Gemfile”
- ActionController::InvalidAuthenticityToken
- Rails: Why “sudo” command is not recognized?
- Rails: Can’t verify CSRF token authenticity when making a POST request
- undefined method `each’ for nil:NilClass… why?
- Bundler: You must use Bundler 2 or greater with this lockfile
- undefined method `each’ for nil:NilClass… why?
- Using Pundit for all-access “super_admin” role
- How to tell if homebrew is installed on Mac OS X
- What is the difference between Rails.cache.clear and rake tmp:cache:clear?
- Unable to install gem – Failed to build gem native extension – cannot load such file — mkmf (LoadError)
- Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
- Cannot load such file — bcrypt_ext
- How do I remove Permission denied @ rb_sysopen – Gem install error?
- Can’t find the ‘libpq-fe.h header when trying to install pg gem
- warning: constant ::Fixnum is deprecated When generating new model
- could not connect to server: No such file or directory (PG::ConnectionBad)
- PG::ConnectionBad: fe_sendauth: no password supplied
- SSL CA cert (path? access rights?)
- couldn’t find file ‘jquery’ with type ‘application/javascript’
- Passing parameters in rails redirect_to
- Getting: “Migrations are pending; run ‘bin/rake db:migrate RAILS_ENV=development’ to resolve this issue.” after cloning and migrating the project
- How to find out which rails version an existing rails application is built on?
- RubyMine Unit tests – Test Framework quit unexpectedly
- bcrypt LoadError: Cannot load such file
- Uninitialized constant “Controller Name”
- How do I format datetime in rails?
- heroku open – no app specified
- Difference between rake db:migrate db:reset and db:schema:load
- TypeError: no implicit conversion of Symbol into Integer
- Sass::SyntaxError: File to import not found or unreadable: bootstrap-sprockets
- Getting error in Curl – Peer certificate cannot be authenticated with known CA certificates
- How to stop (and restart) the Rails Server?
- Migrations are pending; run ‘bin/rake db:migrate RAILS_ENV=development’ to resolve this issue
- SSL Error: unable to get local issuer certificate
- How do I POST JSON data with cURL?
- How do I install and use cURL on Windows?
- Advanced AREL or just Rails Query for has_many through search by association
- https connection using CURL from command line
- Curl command for https ( SSL )
- SSL_read failing with SSL_ERROR_SYSCALL error
- Getting error: Peer authentication failed for user “postgres”, when trying to get pgsql working with rails
- PHP + curl, HTTP POST sample code?
- What is the curl error 52 “empty reply from server”?
- Verify return code: 20 when testing OpenSSL
- cURL to show response headers after submiting a file
- what is meant by devel for openssl?
- curl: (6) Could not resolve host: google.com; Name or service not known
- cURL error 60: SSL certificate: unable to get local issuer certificate
- Binary Data Posting with curl
- OpenSSL: PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE
- How do I make curl ignore the proxy?
- What exactly is cacert.pem for?
- Converting PKCS#12 certificate into PEM using OpenSSL
- OpenSSL: unable to verify the first certificate for Experian URL
- PHP cURL custom headers
- Enter PEM pass phrase when converting PKCS#12 certificate into PEM
- Devise lockable – How to unlock account using unlock_in
- Ruby String to Date Conversion
- Error:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
- Setting Curl’s Timeout in PHP
- How to fix: fatal error: openssl/opensslv.h: No such file or directory in RedHat 7
- Generate model in Rails using user_id:integer vs user:references
- cURL 28 error after switch from to brew php 7.2 on localhost
- Passing .pem and .key files in cURL doesn’t work in WordPress
- Creating a post with the REST API, curl and oauth returning 401 error
- Retrieving Google Plus share count with wp_remote_post
- cURL error 60: SSL certificate problem: unable to get local issuer certificate
- Use wp_remote_get to get JSON instagram feed from public profile
- How to convert this cURL to wp_remote_get?
- On Plugin Activation, How Do I Check for Proper Transport Mechanism?
- Problem with cURL and rest API
- How to convert this cURL to wp_remote_*?
- WordPress from url get external source title
- Download file using cURL into wp-includes/uploads
- Update File Once Every 30 Days
- cURL error for cron
- WordPress transient not working with WP Engine
- Error: Can´t access facebook comment plugin admin page
- Simulating timeout is not working
- WP Refused to display ‘URL’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’
- Inconsistencies between wp_remote_post and cURL
- Sending WordPress database information to cross domain the safe way?
- Run WordPress Plugin in the Specified time
- Get full page HTML for a non-public WordPress page
- Is it possible to make WordPress as a RESTful app?
- How to use the HTTP API (wp_remote_get) instead of cURL?
- how to download the ssl certificate from a website?
- Heartbleed: What is it and what are options to mitigate it?
- Is it possible to generate RSA key without pass phrase?
- ssh-keygen does not create RSA private key
- How to test a HTTPS URL with a given IP address
- Difference between `curl -I` and `curl -X HEAD`