Home Https request wth user auth rails
Reply: 0

Https request wth user auth rails

user351 Published in August 15, 2018, 8:44 pm
curl -u "token:53555" https://url/method

how to send token in Net::Http url, I tried as

uri = URI.parse(url)
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Get.new(uri.request_uri,{'token' => '53555'})
response = http.request(request)

But its not working

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.29266 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO