dev blog box
Tuesday, April 7, 2015
Stuff from rails trenches
Routes resources and resource are 2 different things.
POST to a url with basic authentication and 301 response without follow through.
require 'rest-client' $result = '' RestClient.post('https://username:password@localhost:3000/', {} ) do |response, request, result| $result = result["Location"] end puts $result It took some digging but it's nice and short. Happy thoughts.
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)