Home Https request wth user auth rails
Reply: 0

Https request wth user auth rails

user351
1#
user351 Published in April 27, 2018, 8:08 am
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.424349 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO