Questions tagged [rest-client]

REST Client is an open-source HTTP and REST client for Ruby.

REST Client is an open-source HTTP and REST client for Ruby originally created by Adam Wiggins and now maintained by Andy Brody. It was inspired by Sinatra's micro-framework style of specifying actions: get, put, post, delete.

Github

The code repository and issue tracker can be found on github:

https://github.com/rest-client/rest-client

Resources

940 questions
8
votes
3 answers

Elasticsearch Rest Client Still Giving IOException : Too Many Open Files

This is a follow up to the solution which was provided to me on this previous post: How to Properly Close Raw RestClient When Using Elastic Search 5.5.0 for Optimal Performance? This same exact error message came back! 2017-09-29 18:50:22.497 ERROR…
PacificNW_Lover
  • 4,746
  • 31
  • 90
  • 144
8
votes
3 answers

How to use Insomnia Rest Client with Client Certificates?

I'm trying to use Insomnia with Client Certificates. I followed this document from the Insomnia documentation. I added my certificate pem files and password. The problem is that I'm still getting this error: Error: Couldn't connect to server. Do…
eli
  • 205
  • 2
  • 5
  • 12
8
votes
4 answers

Authentication headers using Rest Client Ruby Gem

I have already created a basic authentication key, now I am just trying to utilize it. I have tried a few different variations, but none seem to show Authorization in the request headers. $auth = 'Basic…
Josh
  • 460
  • 1
  • 5
  • 20
8
votes
1 answer

Ruby/Rails Performance: OpenURI vs NET:HTTP vs Curb vs Rest-Client

I'm accessing different servers for data and I tried different methods in different classes, using the basic http::net, curb, rest-client and open-uri (1) How to measure performance in Ruby / Rails in General? (2) Which method do you think is…
user1781626
8
votes
2 answers

RestClient::Request.execute passing hashset

I have been using a RestClient request as such: response = RestClient.post server_url, post_params, accept: :json Which has been working fine. But I need to increase the timeout as it's not completing every now and then while the server is…
user2023973
  • 81
  • 1
  • 1
  • 3
8
votes
3 answers

The request sent by the client was syntactically incorrect ().+Spring , RESTClient

I am working with Spring MVC using JSON objects. while I am tring to send JSON Object from RESTClient, I am getting HTTP Status 400 - The request sent by the client was syntactically incorrect (). This is my controller ObjectMapper mapper=new…
Chandrasekar
  • 147
  • 2
  • 2
  • 11
7
votes
1 answer

How to send file as a parameter of POST request in REST Client in IntelliJ?

I want to send /myaddres?path=&content= to a service with editor based REST client in IntelliJ, but take the content of from a file. Is it possible?
Dims
  • 47,675
  • 117
  • 331
  • 600
7
votes
3 answers

Errno::ECONNRESET: Connection reset by peer in Rails using rest-client

We have a Ruby on Rails application and this has a "search" functionality (search for some company). From browser user key-in some name and hit search and this search make an rest api call to outside system and get us some search results. We are…
Pavan
  • 79
  • 1
  • 1
  • 3
7
votes
1 answer

How to Properly Close Raw RestClient When Using Elastic Search 5.5.0 for Optimal Performance?

Am using a Spring Boot 1.5.4.RELEASE Microservice to connect to an ElasticSearch 5.5.0 instance using the low level Rest Client that ElasticSearch provides. pom.xml org.springframework.boot
PacificNW_Lover
  • 4,746
  • 31
  • 90
  • 144
7
votes
2 answers

RestClient.get returning certificate verify failed

I am trying hit an internal testing API server using RestClient and Ruby v. 2.2.1. This is essentially the code: url = "https://10.10.0.10/thing/i/want/to/get" header = { :content_type => "application/json", :"x-auth-token" =>…
kroe761
  • 3,296
  • 9
  • 52
  • 81
7
votes
2 answers

How to pass POST parameters using PhpStorm REST CLIENT

POST parameters are passed in request body In which format do I need to pass them in PhpStorm REST CLIENT? I tried param=value param:value Nothing works. Any help appreciated
Akhmed
  • 1,141
  • 4
  • 21
  • 49
7
votes
3 answers

How to send data in a post request with RestClient

I'm trying to mimic a curl request using the RestClient Ruby gem, and so far, I've been having a lot of trouble trying to send in a payload. My curl request looks something like this curl URL -X POST -u API_KEY -d '{"param_1": "1"}' I've been…
rboling
  • 717
  • 1
  • 4
  • 8
7
votes
2 answers

Android REST Client: best solution?

I need to create an application that dialogues with a REST server. I found that answer: Android REST client, Sample? but it's of 2012. Is there a tutorial that I can follow (and that you suggest) in order to obtain a little working sample…
helloimyourmind
  • 994
  • 4
  • 14
  • 30
7
votes
2 answers

How to get complete response for Groovy RestClient failed response

Currently, I'm getting HttpResponseException, which has only statusCode. How can I get complete body of response? Here is code I'm using restClient = new RESTClient("http://${Server}") try { HttpResponseDecorator resp =…
Vyacheslav
  • 73
  • 1
  • 4
7
votes
2 answers

How to send a post request to the RESTserver api in php-Codeigniter?

I've been trying to make a POST request in my CodeIgniter RestClient controller to insert data in my RestServer, but seems like my POST request is wrong. Here is my RestClient POST request in controller: $method = 'post'; $params =…
Madhu
  • 2,643
  • 6
  • 19
  • 34