Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ujihisa/net-https-wrapper
For a programmer who thinks net/https of ruby standard library sucks.
https://github.com/ujihisa/net-https-wrapper
Last synced: about 1 month ago
JSON representation
For a programmer who thinks net/https of ruby standard library sucks.
- Host: GitHub
- URL: https://github.com/ujihisa/net-https-wrapper
- Owner: ujihisa
- Created: 2009-08-16T01:27:13.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2009-08-16T03:48:21.000Z (about 15 years ago)
- Last Synced: 2024-05-01T23:19:35.691Z (7 months ago)
- Homepage:
- Size: 74.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# net/https wrapper
require 'net-https-wrapper'
a = Net::HTTP.post(
'https://www.google.com/accounts/ClientLogin',
{
'Email' => email,
'Passwd' => pass,
'service' => 'blogger',
'accountType' => 'HOSTED_OR_GOOGLE',
'source' => 'ujihisa-bloggervim-1'
}.map {|i, j| "#{i}=#{j}" }.join('&'),
{'Content-Type' => 'application/x-www-form-urlencoded'})
a.body.lines.to_a.maph {|i| i.split('=') }['Auth'].chomp