Curl Global Community

Full Version: json を http put したい
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
こんにちは。REDMINEのクライアントを実装してみようと思うのですが、
json についての紹介では getする方法しか書かれていません。
httpでjsonをpostしたりputしたりするには、どんなクラスを使えばいいのでしょうか?
JsonValue-write というのがありますが、これはローカルにファイル保存するためのAPIなのかしら。。

HttpRequestDataを継承したクラスを作り、そのオブジェクトにJsonの文字列を保存して、

HttpFile.http-read-openを使えば、投げれます。
(request-dataにそのHttpRequestDataを継承したオブジェクト、request-methodでputやpost。)