Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
101 views

How to use Mailgun with HTTParty in Rails

I want to use Mailgun with HTTParty in Rails: RestClient.post "https://api:key-###"\ "@api.mailgun.net/v3/###/messages", from: from_email, to: to_email, subject: title, html: ...
Baig Hyunwoo's user avatar
0 votes
0 answers
243 views

Trouble to make a request with httparty

I'm using rest-client to make some request in a API, inside my automation scenarios with cucumber. I'm trying to change the gem to Httparty but I can not do it. url_login = "https://mu.com/login" ...
Henrique Franco's user avatar
0 votes
1 answer
249 views

need to persist cookies in Ruby ala Python's 'requests' library Session() object

So I have a Python script that's working successfully to call a series of URLs with get and post requests, which eventually results in an authentication token I can use for further work. The Python ...
ether_joe's user avatar
  • 1,098
2 votes
1 answer
6k views

How do I view the response cookies from a HTTParty get request?

I'm using httparty to do a GET request to a certain website. I need the response cookies in order to successfully make a POST request to login. rest_client makes it really easy, all I have to do is: ...
narzero's user avatar
  • 2,289
2 votes
4 answers
2k views

work around Ruby's broken URI.parse, follow redirects

I am using Ruby to scrape webpages that sometimes return redirects which I want to follow. There is many Ruby gems that do that, but there is a problem: Ruby's URI.parse explodes on some URIs that ...
levinalex's user avatar
  • 5,949