rest-client Questions

1

I want to send <MYURL>/myaddres?path=<MYPATH>&content=<MYCONTENT> to a service with editor based REST client in IntelliJ, but take the content of <MYCONTENT> from a file...
Pasteurizer asked 25/4, 2019 at 14:14

3

Solved

I have the following spec... describe "successful POST on /user/create" do it "should redirect to dashboard" do post '/user/create', { :name => "dave", :email => "[email protected]...
Tillis asked 10/1, 2013 at 21:14

5

Solved

I am trying to use RestClient to access a webservice using post method. I am sending the authorization token as specified but I am still getting a 403 status error which means I am forbidden to use...
Nutgall asked 5/5, 2014 at 1:14

3

Solved

i am currently using the RestClient and cannot seem to figure out how to output the request xml and response xml for debugging and informational purpose... I tried the solution mentioned here: htt...
Reducer asked 22/10, 2011 at 8:12

2

I have to call a REST webservice and I am planning to use RestTemplate. I looked at examples on how to make a GET request and they are as shown below. String result = restTemplate.getForObject("h...
Dravidian asked 26/8, 2011 at 2:30

3

Looking at the docs there aren't any good examples of how to make a POST request. I need to make a POST request with a auth_token parameter and get a response back: response = RestClient::Request....
Judenberg asked 3/2, 2016 at 11:52

4

Right now I can make a request as follows: user = 'xxx' token = 'xxx' survey_id = 'xxx' response = RestClient.get "https://survey.qualtrics.com/WRAPI/ControlPanel/api.php?Request=getLegacyRespo...
Balmuth asked 13/7, 2012 at 23:9

5

I'd like to debug the request my Rails app makes with RestClient. The RestClient docs say: To enable logging you can set RestClient.log with a ruby Logger or set an environment variable to a...
Balcke asked 9/4, 2012 at 3:10

3

I have a requirement to pass a custom object using RESTTemplate to my REST service. RestTemplate restTemplate = new RestTemplate(); MultiValueMap<String, Object> requestMap = new LinkedMulti...
Limburg asked 13/6, 2012 at 11:19

2

Solved

I am trying to use DELETE method of HttpMethod. The code that I am using for that is response = restTemplate.exchange(url, HttpMethod.DELETE, requestEntity, Response.class); I am also using Jac...
Arundinaceous asked 30/8, 2013 at 11:49

3

Solved

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 e...
Semblable asked 4/10, 2017 at 7:41

4

Solved

I understand how to make an http request using basic authentication with Ruby's rest-client response = RestClient::Request.new(:method => :get, :url => @base_url + path, :user => @sid, :p...
Phyllisphylloclade asked 9/7, 2012 at 1:17

1

Solved

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 <parent> <groupId&gt...
Redroot asked 12/9, 2017 at 2:23

2

Solved

I am building an app in java.I hit api more than 15000 times in loop and get the response ( response is static only ) Example ** username in for loop GET api.someapi/username processing end ...
Soever asked 8/4, 2017 at 14:7

2

Solved

I am using spring RestTemplate to consume rest services(exposed in spring rest). I am able to consume success scenarios. But for negative scenarios, service returns error messages and error codes. ...
Dermot asked 25/2, 2015 at 4:8

2

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 comp...
Griffey asked 30/1, 2013 at 4:36

1

Which one of these implementation is recommended for asynchronous rest API calls from client applications and also more robust? Sprint resttemplate Jersey rest client Rest easy client
Theresiatheresina asked 1/9, 2015 at 17:38

3

I have been trying for a while to stub multipart requests using webmock and have not found a satisfying solution. Ideally, I would like to stub the request as follow: stub_request(:post, 'http://...
Sanjay asked 13/3, 2013 at 2:15

2

When I do a POST request I am getting this error. Error: connect ECONNREFUSED 127.0.0.1:3000. On the contrary, when I use postman it works. This is the url: http://localhost:3000/users/sign_in An...
Parrotfish asked 6/9, 2016 at 21:54

2

I have this POJO : public class JsonObj { private String id; private List<Location> location; public String getId() { return id; } public List<Location> getLocation() { retu...
Spurgeon asked 11/1, 2014 at 14:20

2

Solved

I have been playing around with using rest-client to access a rails app I have written. I've written a quick script to log in and make a post request. Everything is working but I did have to work r...
Cyanocobalamin asked 2/5, 2012 at 12:31

2

Solved

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 => "a...
Italianism asked 7/7, 2016 at 20:53

1

Solved

This POST request using Ajax works perfectly: var token = "my_token"; function sendTextMessage(sender, text) { $.post('https://graph.facebook.com/v2.6/me/messages?', { recipient: {id: sender}, ...
Barytes asked 13/4, 2016 at 14:43

2

Solved

I'm interested in setting my own user agent when using the ruby RestClient gem. http://github.com/archiloque/rest-client However, I can't find any documentation on how to do so. Any pointers?
Autosome asked 10/8, 2012 at 10:27

3

Solved

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 P...
Cellist asked 25/10, 2015 at 1:12

© 2022 - 2024 — McMap. All rights reserved.