{"id":43191,"date":"2016-09-29T00:00:53","date_gmt":"2016-09-28T15:00:53","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=43191"},"modified":"2016-09-29T00:00:53","modified_gmt":"2016-09-28T15:00:53","slug":"httpstat","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/httpstat\/","title":{"rendered":"httpstat - curl\u306e\u7d71\u8a08\u60c5\u5831\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2016\/09\/s_20160928_195739.jpg\" alt=\"S 20160928 195739\" title=\"s_20160928_195739.jpg\" border=\"0\" width=\"833\" height=\"564\" \/><\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306ehttp\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066\u7d76\u5927\u306a\u4eba\u6c17\u3092\u8a87\u308bcurl\u306f\u3001\u5358\u306bWeb\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3067\u304d\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5fdc\u7b54\u6642\u9593\u3092\u8a73\u3057\u304f\u8868\u793a\u3059\u308b\u6a5f\u80fd\u304c\u642d\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/github.com\/reorx\/httpstat\">httpstat<\/a>\u300d\u306f\u3001\u3053\u306ecurl\u306e\u53d6\u5f97\u3059\u308b\u5fdc\u7b54\u6642\u9593\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u8868\u793a\u3059\u308bPython\u30b9\u30af\u30ea\u30d7\u30c8\u3002curl\u306e\u30e9\u30c3\u30d1\u30fc\u3068\u3057\u3066\u52d5\u4f5c\u3057\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u5404\u6bb5\u968e\u3067\u3069\u308c\u3060\u3051\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u304b\u3092\u898b\u3084\u3059\u304f\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>DNS\u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u3001TCP\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u3001SSL\u30cf\u30f3\u30c9\u30b7\u30a7\u30a4\u30af\u3001\u30b5\u30fc\u30d0\u30fc\u51e6\u7406\u3001\u8ee2\u9001\u51e6\u7406\u7b49\u306e\u5404\u6bb5\u968e\u3067\u3069\u308c\u3060\u3051\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u304b\u3092\u8868\u793a\u3067\u304d\u308b\u306e\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u5fdc\u7b54\u304c\u9045\u3044\u5834\u5408\u306b\u5b9f\u969b\u306b\u3069\u3053\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3044\u308b\u306e\u304b\u8a73\u3057\u304f\u8abf\u67fb\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u4f7f\u7528\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3002<\/p>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>httpstat\u306fPython3\u3067\u52d5\u4f5c\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3001\u5916\u90e8\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u4f9d\u5b58\u3057\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u4ee5\u4e0b\u306e3\u3064\u306e\u65b9\u6cd5\u3067\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u76f4\u63a5\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u5834\u5408\u3002<\/p>\n<pre>\nwget https:\/\/raw.githubusercontent.com\/reorx\/httpstat\/master\/httpstat.py\n<\/pre>\n<p>pip\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3002<\/p>\n<pre>\npip install httpstat\n<\/pre>\n<p>Mac\u3067Homebrew\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\nbrew install httpstat\n<\/pre>\n<h2>\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>pip\u3084Homebrew\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5834\u5408\u300chttpstat\u300d\u30b3\u30de\u30f3\u30c9\u3092\u76f4\u63a5\u547c\u3073\u51fa\u3057\u3001\u300chttpstat URL\u300d\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\nhttpstat http:\/\/www.google.com\/\n<\/pre>\n<p>cURL\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092url\u306e\u5f8c\u308d\u306b\u8ffd\u52a0\u3057\u3066\u305d\u306e\u307e\u307e\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059(\u305f\u3060\u3057-w\/-D\/-o\/-s\/-S\u306f\u9664\u304f)\u3002<\/p>\n<pre>\nhttpstat httpbin.org\/post -X POST --data-urlencode \"a=b\" -v\n<\/pre>\n<p>\u3055\u3089\u306b\u74b0\u5883\u5909\u6570\u306b\u3088\u3063\u3066\u51e6\u7406\u3092\u5236\u5fa1\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002httpstat\u304c\u4f7f\u7528\u3059\u308b\u74b0\u5883\u5909\u6570\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><span class=\"mybold\">HTTPSTAT_SHOW_BODY<\/span>: true\u3092\u30bb\u30c3\u30c8\u3059\u308b\u3068\u30ec\u30b9\u30dd\u30f3\u30b9\u30dc\u30c7\u30a3\u3092\u8868\u793a\u3059\u308b<\/li>\n<li><span class=\"mybold\">HTTPSTAT_SHOW_SPEED<\/span>: true\u3092\u30bb\u30c3\u30c8\u3059\u308b\u3068\u901f\u5ea6\u3092\u8868\u793a\u3059\u308b<\/li>\n<li><span class=\"mybold\">HTTPSTAT_SAVE_BODY<\/span>: false\u3092\u30bb\u30c3\u30c8\u3059\u308b\u3068\u30ec\u30b9\u30dd\u30f3\u30b9\u30dc\u30c7\u30a3\u3092\u4fdd\u5b58\u3057\u306a\u3044<\/li>\n<li><span class=\"mybold\">HTTPSTAT_CURL_BIN<\/span>: cURL\u306e\u30d0\u30a4\u30ca\u30ea\u3092\u6307\u5b9a<\/li>\n<li><span class=\"mybold\">HTTPSTAT_DEBUG<\/span>: true\u306b\u3059\u308b\u3068\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3092\u8868\u793a<\/li>\n<\/ul>\n<p>\u8a73\u7d30\u306f\u516c\u5f0f\u30b5\u30a4\u30c8\u304a\u3088\u3073\u300chttpstat --help\u300d\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2016\/09\/s_20160928_195756.jpg\" alt=\"S 20160928 195756\" title=\"s_20160928_195756.jpg\" border=\"0\" width=\"826\" height=\"485\" \/><\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>httpstat\u306f\u5358\u4f53\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u300chttpstat.py\u300d\u3067\u4f5c\u3089\u308c\u3066\u3044\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7c21\u5358\u3067\u52d5\u304b\u3057\u3084\u3059\u3044\u306e\u304c\u9b45\u529b\u3067\u3059\u3002\u5185\u90e8\u306e\u4f5c\u308a\u3082\u6bd4\u8f03\u7684\u5358\u7d14\u3067\u3042\u308b\u305f\u3081Python\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f5c\u308a\u65b9\u3092\u5b66\u7fd2\u3057\u305f\u3044\u958b\u767a\u8005\u306e\u65b9\u306b\u3068\u3063\u3066\u3082\u53c2\u8003\u306b\u306a\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306ehttp\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066\u7d76\u5927\u306a\u4eba\u6c17\u3092\u8a87\u308bcurl\u306f\u3001\u5358\u306bWeb\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3067\u304d\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5fdc\u7b54\u6642\u9593\u3092\u8a73\u3057\u304f\u8868\u793a\u3059\u308b\u6a5f\u80fd\u304c\u642d\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u4eca\u56de\u7d39\u4ecb\u3059\u308b\u300chttpstat\u300d\u306f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":43192,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3459],"tags":[3071,3702,703],"class_list":["post-43191","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-curl","tag-httpstat","tag-python"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/43191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=43191"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/43191\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/43192"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=43191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=43191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=43191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}