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
- How to install OpenSSL in windows 10?
- How do I get a YouTube video thumbnail from the YouTube API?
- SSL Error: unable to get local issuer certificate
- How do I POST JSON data with cURL?
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- HTTP POST and GET using cURL in Linux [duplicate]
- How do I POST JSON data with cURL?
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- How do I install and use cURL on Windows?
- Openssl : error “self signed certificate in certificate chain”
- Is there a way to follow redirects with command line cURL?
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- How to fix “SSL certificate problem: self signed certificate in certificate chain” error?
- Advanced AREL or just Rails Query for has_many through search by association
- How to send a header using a HTTP request through a cURL call?
- How to use Python to execute a cURL command?
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- How can I set the request header for curl?
- How to use Python to execute a cURL command?
- How to define the basic HTTP authentication using cURL correctly?
- How to use the curl command in PowerShell?
- https connection using CURL from command line
- performing HTTP requests with cURL (using PROXY)
- How to define the basic HTTP authentication using cURL correctly?
- Curl command for https ( SSL )
- AngularJS- Login and Authentication in each route and controller
- How to do a PUT request with cURL?
- How to generate a self-signed SSL certificate using OpenSSL?
- How to display request headers with command line curl
- Rails 5 ActionController::InvalidAuthenticityToken error
- what does ? ? mean in ruby
- How to capture cURL output to a file?
- SSL_read failing with SSL_ERROR_SYSCALL error
- Getting error: Peer authentication failed for user “postgres”, when trying to get pgsql working with rails
- Using cURL with a username and password?
- PHP + curl, HTTP POST sample code?
- Converting pfx to pem using openssl
- OpenSSL Verify return code: 20 (unable to get local issuer certificate)
- What is the curl error 52 “empty reply from server”?
- Python AttributeError: ‘module’ object has no attribute ‘SSL_ST_INIT’
- Verify return code: 20 when testing OpenSSL
- How to fix libeay32.dll was not found error
- Can curl make a connection to any TCP ports, not just HTTP/HTTPS?
- cURL to show response headers after submiting a file
- what is meant by devel for openssl?
- Parsing XML with Ruby
- curl: (6) Could not resolve host: google.com; Name or service not known
- Call to undefined function curl_init().?
- Python locale error: unsupported locale setting
- How do I get a YouTube video thumbnail from the YouTube API?
- Encrypt with private key and decrypt with public key
- How to use OpenSSL to encrypt/decrypt files?
- How to use cURL to send Cookies?
- wget/curl large file from google drive
- Using OpenSSL what does “unable to write ‘random state'” mean?
- How do I POST JSON data with cURL?
- CURL ERROR: Recv failure: Connection reset by peer – PHP Curl
- curl: (35) SSL connect error