You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
I posted Ruby HTTP clients feature matrix which compares various Ruby HTTP client implementations, as a product of Asakusa.rb meetups. I hope Ruby users find it informative. Listed clients: net/http, open-uri, httparty, rest-client, right_http_connection, rufus-verbs, simplehttp, curb, patron, typhoeus, eventmachine, excon, httpclient, faraday, wrest, activeresource and rfuzz. Sample and test scri
I’ve been playing around with Orbited, APE and the like, but they all have lots of code and kind of reinvent the wheels in some ways (reimplementing an HTTP server, daemon, etc). So just for fun, I’ve hacked a simple AJAX push server (aka Comet) on top of Thin using the new Async Response feature. To be honest, after revisiting Orbited a couple times, it’s pretty cool! It’s easily extensible, base
http://d.hatena.ne.jp/willnet/20080626/1214487378 httpclientはopen-uriの手軽さと、Net::HTTPの機能を両立させてる使い勝手のいいライブラリだ。クッキーやkeep-aliveもサポートしている。ただし、Ruby 1.9未対応。Ruby 1.9だとParseDateなんてないぞーってエラーがでてしまう。→最新版でRuby 1.9対応 POSTの場合はpost_contentを使う。串、User-Agent、FromヘッダはHTTPClient.newの引数で。 require 'rubygems' require 'httpclient' require 'kconv' hc = HTTPClient.new query = "ruby" html = hc.get_content("http://www.google.
http://lingr.g.hatena.ne.jp/urekat/ http://ssktkr.com/lingrjs/ JavaScriptのLingrクライアントを作る過程でおもろいのができた。 open-uri-post.rb require "open-uri" require "net/http" module Net class HTTPRequest self.class_eval{ attr_reader :postdata def initialize(path, initheader = nil) klass = initheader["postdata"] ? HTTP::Post : HTTP::Get if initheader @postdata = initheader.delete("postdata") super klass::METHOD, kla
About NetworkFacade is an alternative to DRb, XML/RPC and other REST api, all in one ! DRb alternative Do the same as DRb (tcp, unix socket, ssl) but easier and even more sexy XML/RPC and REST alternativeSee Flickr, Digg, Netvibes, Remember The Milk examples in the documentation Simple client example # Declare the Foo class with default port and host (localhost and 5042) class Foo Simple server
ZIPPO99 Situs Slot Online Terpercaya 2023 | Layanan Deposit 24 jam dan minimal deposit 20ribu ZIPPO99 Situs Slot Tepercaya Mudah MaxWin ZIPPO99 adalah situs slot online Mudah MaxWin terpercaya yang dipercaya oleh semua pemain game judi online, sesuai dengan namanya situs slot Gacor Mudah Maxwin, artinya pemain online akan mudah. untuk memenangkan jackpot maxwin. Hal seperti ini tidak akan anda tem
Speeding Up Net::HTTP, OpenURI or Any Other TCPSocket Offspring # Only if you’re doing lots of requests amongst threads and you notice that the opening of the socket is blocking everything. require 'resolv-replace' And if you are, then it’s the Matz’ pajamas. From his own tongue: I’m sorry if you feel offended, it’s not my intention. But if getaddrinfo() on your system does not work as you expect,
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く