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

REST call using ApacheHttpClient with data and headers

I need to integrate Kii MbaaS services in one of my web application apart from the Mobile apps. I was using the Android SDK and was able to connect it. However for website using Java solution they don't have any SDK and asked me to do th operation…
Suvoraj Biswas
  • 573
  • 1
  • 6
  • 10
5
votes
1 answer

How to change Content-Type of GET-Request via firefox addon RESTClient

I want to send GET-Requests which shall be answered by my REST-API. My java programm currently supports text/plain, text/html, text/xml and application/json using the JAX-RS Reference Implementation Jersey. To test the different media types I'm…
Markus
  • 291
  • 1
  • 4
  • 18
5
votes
1 answer

RestClient::ResourceNotFound (404 Resource Not Found):

I am trying to send mails using RestClient and mailgun. I installed gem in my rails app and defined "require 'rest_client'" in config/application.rb. Then to send mail, I wrote this in my message controller: RestClient.post…
user2206724
  • 1,265
  • 3
  • 20
  • 38
5
votes
1 answer

Handle Connection and Read Timeouts for RestClient calls in android

I have a RestService interface with many rest calls which I am using throughout my application. I am setting timeouts for handling connection and read-timeouts ClientHttpRequestFactory httpFactory =…
Aswathy P Krishnan
  • 11,728
  • 7
  • 27
  • 45
5
votes
2 answers

How to send POST request to Phil Sturgeon's CodeIgniter RestServer

I'm new to CodeIgniter. I'm using Phil Sturgeon's RestServer and RestClient. I've been trying to make a POST request in my CodeIgniter RestClient controller to update data in my CodeIgniter RestServer, but it never updates data in my database. I…
emwiguna
  • 101
  • 1
  • 1
  • 8
4
votes
1 answer

Cannot instantiate the type ResteasyClientBuilder

I am trying to build a simple Resteasy client, using proxy framework. I am getting a error, "Cannot instantiate the type ResteasyClientBuilder". This is the Client class. package com.RestClient.Clients; import javax.ws.rs.core.Response; import…
4
votes
1 answer

How to use Spring WebClient to make synchronous call?

Spring Framework in RestTemplate documentation has note: NOTE: As of 5.0 this class is in maintenance mode, with only minor requests for changes and bugs to be accepted going forward. Please, consider using the…
Openroad
  • 91
  • 1
  • 6
4
votes
3 answers

How do you avoid fixed resource

Roy Fielding writes A REST API must not define fixed resource names or hierarchies (an obvious coupling of client and server). Servers must have the freedom to control their own namespace. Instead, allow servers to instruct clients on…
Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
4
votes
0 answers

reactor.netty.http.client.PrematureCloseException: Connection prematurely closed DURING response

I have spring reactive a micro-service which call another micro-service to get list of products, but it keep failing with the error reactor.netty.http.client.PrematureCloseException: Connection prematurely closed DURING response Suppressed:…
Melad Basilius
  • 3,847
  • 10
  • 44
  • 81
4
votes
1 answer

Quarkus Rest Client and OAuth2

I have a secured micro service that is calling another secured micro service. Both services have service accounts in Keycloak. How can I configure the 1st service to automatically obtain access token from keycloak when calling the 2nd service? It's…
overthetop
  • 1,664
  • 2
  • 15
  • 25
4
votes
1 answer

Rest-Client Ruby Gem Headers

I'm attempting to use the rest-client gem to post something, but for some reason, I keep getting Internal Server Error. I used Simple REST Client on Chrome, and got the same error unless I sent the following header: Content-Type:…
thinkfuture
  • 241
  • 1
  • 5
  • 12
4
votes
1 answer

Quarkus Rest Client never timeouts

The rest client never times out. After multiple requests, quarkus stops serving new requests. Also tried .../mp-rest/connectTimeout=5000 .../mp-rest/readTimeout=5000 but with no luck. The interface looks like package org.acme; import…
agelbess
  • 4,249
  • 3
  • 20
  • 21
4
votes
2 answers

How to add HTTP headers in Microprofile REST client dynamically?

I am developing application, which uses microprofile rest client. And that rest client should send REST request with various http header. Some headers names changes dynamically. My microprofile rest client should be generic, but I did not find how…
madafaka
  • 133
  • 2
  • 7
4
votes
1 answer

Ruby Memory Usage gone wild

From a data supplier I download roughly 75 images + 40 pages of details in one job using RestClient. Goes like this: Authenticate to suppliers service and set cookie jar in variable Download XML XML contains roughly 40 assets. For each asset…
mtrolle
  • 2,234
  • 20
  • 19
4
votes
2 answers

bypass request via proxy is not supporting jaxws rs api

I am making a http request to external stream server; for that I am using jaxws-rs-api. I am able to make the request and getting response succesfully. but when I tried to make the request via proxy, it is not going through proxy (even not…
Ram Kowsu
  • 711
  • 2
  • 10
  • 30