スポンサーサイト

2023.04.20 Thursday
0

    一定期間更新がないため広告を表示しています

    category:- | by:スポンサードリンク | - | - | -

    JSONデータをPOSTする

    2016.01.29 Friday 00:32
    0
      JSONデータをPOSTする

      POSTで JSON データを送信する時は、ふつうの POST と同様に -d オプションを使います。
      リクエストヘッダに “Content-Type: application/json” を付けないとサーバが JSONと認識しない時は、-Hオプションで指定します。
      curl -H "Content-Type: application/json" -d '{"root":[{"title":"テスト1", "url": "http://examples.com/test1"}, {"title":"テスト2", "url":"http://examples.jp/test2"}]}' http://api.examples.com/postjson.php

      category:javascript | by:ittoocomments(0)trackbacks(0) | -

      スポンサーサイト

      2023.04.20 Thursday 00:32
      0
        category:- | by:スポンサードリンク | - | - | -
        Comment








           
        Trackback
        この記事のトラックバックURL

        ad
        Calender
             12
        3456789
        10111213141516
        17181920212223
        24252627282930
        31      
        << March 2024 >>
        Selected entry
        PR
        Category
        Archives
        Recommend
        Link
        Profile
        Search
        Others
        Mobile
        qrcode
        Powered
        無料ブログ作成サービス JUGEM