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
0
votes
1 answer

rest-client error 412

I am using ruby and rest-client gem. I try to communicate with a RESTFUL API. It's working fine if I use the following: RestClient.post "http://www.restfulapi.com/students/284433/enroll", {:token => token, :param1 => "56303", :param2 => ""}.to_json,…
Regis
  • 375
  • 4
  • 16
0
votes
3 answers

getting response as a string c#.net

i have created the website with c#.net in a page load event as protected void Page_Load(object sender, EventArgs e) { string s = "completed."; byte[] bytes = System.Text.Encoding.UTF8.GetBytes(s); …
GowthamanSS
  • 1,434
  • 4
  • 33
  • 58
0
votes
1 answer

RestClient getResponse() work on android 2.3 but not work on 4.0.4

I have this code for get data from web String LOGIN_URL = "http://www.mywebsite.com/services/login.php"; RestClient client = new RestClient(LOGIN_URL ); client.AddParam("email", tbEmail.getText().toString()); …
spajdo
  • 901
  • 9
  • 20
0
votes
1 answer

Ruby Multi-part Form Upload with RestClient

I'm working on a ruby application, and am trying to upload a file to box.net. I have it working with the curl call curl https://www.box.com/api/2.0/files/data -H "Authorization: BoxAuth api_key=&auth_token=" -F folder_id=0 -F…
Pyro2927
  • 1,112
  • 9
  • 18
0
votes
1 answer

CRest log request / response body

Is there any way to print the request body that CRest (codegist) generates before sending it? Similarly is it possible to print the response raw body after receiving it? It would be very helpful for debugging. I'm using CRest for an Android…
zavié
  • 4,301
  • 2
  • 34
  • 46
0
votes
2 answers

Different REST clients = different responses

I'm building an iPhone app that uses REST to talk to the server. A couple of the APIs were getting a valid but incorrect response so I spoke to the server dev and he said they were working for him. I downloaded RESTed from the Mac App Store and…
Fogmeister
  • 76,236
  • 42
  • 207
  • 306
0
votes
1 answer

I'm having some trouble screen scraping with Ruby (using RestClient) in a POST request page

I'm trying to get arrest data from the police blotter of the Palm Beach County Sheriff's Office. I've limited my search to the city of West Palm Beach, going back as far as the data goes (Oct. 31, 1974). I'm using FireFox. When I get the results, I…
Username
  • 3,463
  • 11
  • 68
  • 111
0
votes
1 answer

Ruby on Rails model save rest_client no local database

I was wondering if there was a "proper" way to use RoR's MVC for doing all CRUD actions through something like rest_client. I won't have access to the DB but rather rest requests to do all CRUD actions. Is there any way to define a model that…
Craig
  • 3,043
  • 8
  • 24
  • 25
0
votes
1 answer

Validate Tomcat Authentication in rest client

I am using rest full web service and tomcat security. I want to write a restclient which will provide the username and password and will do authentication in server. Please suggest some ways how can I do this?
Rakesh Mahapatro
  • 866
  • 5
  • 12
0
votes
3 answers

use rest plugin with grails project

i have grails application it works fine until i install REST PLUGIN. After installation i try to run my application, but running failed because of the following reason. | Loading Grails 2.0.3 | Configuring classpath. | Environment set to…
Georgian Citizen
  • 3,727
  • 6
  • 38
  • 46
0
votes
1 answer

http requests time out with ruby (net/http and rest-client) but fast with curl + py

I'm calling a java service via its http endpoint (embedded jetty). The service handles async http requests with a timeout of 5s, and reliably works when I call it from the browser with url params, or curl or py script. When I call it from a ruby…
nflacco
  • 4,972
  • 8
  • 45
  • 78
0
votes
1 answer

Do multiple requests on a RCQ file

I'm trying to test a REST API using Rest Client and I'm wondering if it is possible to perform multiple request in a single rcq file. Documentation is outdated :( If it is not possible, do you know some good testing frameworks or tools to test a…
cgajardo
  • 364
  • 1
  • 2
  • 17
-1
votes
2 answers

Access the Coinbase Candles url

I have successfully managed to call some of Coinbase API's end points, but struggling on calling the Candles Url: using RestSharp; using System.Globalization; using System.Net.Http; using…
redoc01
  • 2,107
  • 5
  • 32
  • 64
-1
votes
1 answer

REST Client VS code extension. The connection was rejected

The connection was rejected. Either the requested service isn’t running on the requested server/port, the proxy settings in vscode are misconfigured, or a firewall is blocking requests. Details: RequestError: connect ECONNREFUSED…
JPVA
  • 1
-1
votes
1 answer

Getting data from ASP.NET Core API

I am working on Market and Financial News app.I took the API from https://www.marketaux.com/. I am trying to display the news from the site into my home page. I have created a model file and controller in ASP.NET Core web app file. In controller…