{"id":73973,"date":"2019-10-15T08:29:59","date_gmt":"2019-10-14T23:29:59","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=73973"},"modified":"2019-10-15T08:30:02","modified_gmt":"2019-10-14T23:30:02","slug":"curlconverter","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/curlconverter\/","title":{"rendered":"cURL Converter - cURL\u30b3\u30de\u30f3\u30c9\u3092Python\u3084PHP\u3001Node.js\u306e\u30b3\u30fc\u30c9\u306b\u5909\u63db\u3067\u304d\u308bWeb\u30b5\u30fc\u30d3\u30b9"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/10\/s_20191014_112401.jpg\" alt=\"S 20191014 112401\" title=\"s_20191014_112401.jpg\" border=\"0\" width=\"878\" height=\"637\" \/><\/p>\n<p>HTML\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u767a\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u5b9a\u756a\u30c4\u30fc\u30eb\u300ccURL\u300d\u3002Web\u958b\u767a\u306b\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u30c4\u30fc\u30eb\u3068\u3057\u3066\u4f7f\u3044\u65b9\u306b\u7fd2\u719f\u3057\u3066\u3044\u308b\u65b9\u306f\u591a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/curl.trillworks.com\/\">cURL Converter<\/a>\u300d\u306f\u3001\u3053\u306ecURL\u3068\u540c\u69d8\u306e\u52d5\u4f5c\u3092\u884c\u3046\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u81ea\u52d5\u3067\u751f\u6210\u3057\u3066\u304f\u308c\u308bWeb\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<\/p>\n<p>GET\u3060\u3051\u3067\u306f\u306a\u304f\u3001POST\u3084Basic\u8a8d\u8a3c\u306a\u3069\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u3066\u3001\u5909\u63db\u5148\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3082Python\u3001Ansible URI\u3001Node.js\u3001R\u3001PHP\u3001Strest\u3001Go\u3001Dart\u3001JSON\u3001Rust\u306a\u3069\u3068\u591a\u5f69\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u4f7f\u7528\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>cURL Converter\u306e\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>\u516c\u5f0f\u30b5\u30a4\u30c8\u3092Web\u30d6\u30e9\u30a6\u30b6\u3067\u958b\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\/2019\/10\/usage1-1.jpg\" alt=\"Usage1\" title=\"usage1.jpg\" border=\"0\" width=\"802\" height=\"470\" \/><\/p>\n<p>\u753b\u9762\u5de6\u5074\u306e\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306bcURL\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u3068\u3001\u5bfe\u5fdc\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u53f3\u5074\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u7a2e\u985e\u306f\u753b\u9762\u4e2d\u592e\u306e\u30ea\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u30b7\u30f3\u30d7\u30eb\u306acURL\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre>\ncurl https:\/\/softantenna.com\/\n<\/pre>\n<p>\u5bfe\u5fdc\u3059\u308bPython\u30b3\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre>\nimport requests\n\nresponse = requests.get('https:\/\/softantenna.com\/')\n<\/pre>\n<p>Go\u8a00\u8a9e\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u5c11\u3057\u9577\u3044\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre>\npackage main\n\nimport (\n\t\"fmt\"\n\t\"io\/ioutil\"\n\t\"log\"\n\t\"net\/http\"\n)\n\nfunc main() {\n\tclient := &http.Client{}\n\treq, err := http.NewRequest(\"GET\", \"https:\/\/softantenna.com\/\", nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tresp, err := client.Do(req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tbodyText, err := ioutil.ReadAll(resp.Body)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Printf(\"%s\\n\", bodyText)\n}\n<\/pre>\n<p>Examples\u3092\u9078\u3076\u3068GET\u3001POST\u3001Basic Auth\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u540c\u30b5\u30a4\u30c8\u306b\u306fChrome\u306e\u4fbf\u5229\u306a\u6a5f\u80fd\u3067\u3042\u308b\u300cCopy as cURL\u300d\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3082\u63b2\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u300cCmd + Opt + I\u300d\u3067DevTools\u3092\u958b\u304d\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bf\u30d6\u306e\u5404\u30ea\u30af\u30a8\u30b9\u30c8\u3092cURL\u5f62\u5f0f\u3067\u30b3\u30d4\u30fc\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3059\u3002Chrome\u3068\u5168\u304f\u540c\u3058\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u305f\u3044\u5834\u5408\u3001\u899a\u3048\u3066\u304a\u304f\u3068\u4fbf\u5229\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>cURL Converter\u3092\u5229\u7528\u3059\u308c\u3070\u3001cURL\u306e\u30b3\u30de\u30f3\u30c9\u3092Python\u3092\u306f\u3058\u3081\u3068\u3057\u305f\u5404\u7a2e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002GitHub\u3067<a href=\"https:\/\/github.com\/NickCarneiro\/curlconverter\/\">\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/a>\u3082\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u3055\u3089\u306a\u308b\u6539\u826f\u306b\u8ca2\u732e\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTML\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u767a\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u5b9a\u756a\u30c4\u30fc\u30eb\u300ccURL\u300d\u3002Web\u958b\u767a\u306b\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u30c4\u30fc\u30eb\u3068\u3057\u3066\u4f7f\u3044\u65b9\u306b\u7fd2\u719f\u3057\u3066\u3044\u308b\u65b9\u306f\u591a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002 \u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300ccURL Converter\u300d\u306f\u3001\u3053\u306e [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":73988,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[66],"tags":[3071],"class_list":["post-73973","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webservice","tag-curl"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/73973","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=73973"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/73973\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/73988"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=73973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=73973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=73973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}