2010-02-07から1日間の記事一覧
メモ。 # GET $ curl http://localhost:3000/users.xml $ curl http://localhost:3000/users/3.xml # POST $ curl http://localhost:3000/users -X POST -d "user[name]=postman" -d "user[age]=19" # PUT $ curl http://localhost:3000/users/4 -X PUT -d "…
がよく分かってないので軽く調査。以下がNSURLRequestとNSMutableURLRequestとで異なるみたい。 NSMutableURLRequestの方は生成したインスタンスを使いまわせる NSMutableURLRequestはpostが送れる NSMutableURLRequestはHTTPヘッダをセットできる コードは…