{"id":325,"date":"2010-10-14T14:49:03","date_gmt":"2010-10-14T05:49:03","guid":{"rendered":"http:\/\/wp.kaz.bz\/tech\/?p=325"},"modified":"2013-05-13T14:27:33","modified_gmt":"2013-05-13T05:27:33","slug":"get_post","status":"publish","type":"post","link":"https:\/\/wp.kaz.bz\/tech\/2010\/10\/14\/325.html","title":{"rendered":"Linux\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067GET\/POST"},"content":{"rendered":"<p>HTTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b3\u30de\u30f3\u30c9\u3002<br \/>\nperl\u30d9\u30fc\u30b9\u3089\u3057\u3044\u3002<br \/>\nCentOS\uff15\u7cfb\u3067yum \u306e\u5834\u5408 yum install perl-libwww-perl <\/p>\n<p>[GET]<\/p>\n<pre class=\"brush:bash\">\r\nGET http:\/\/wp.kaz.bz\/tech\/\r\n<\/pre>\n<p>[POST]<br \/>\nPOST\u3059\u308b\u30c7\u30fc\u30bf\u306f\u6a19\u6e96\u5165\u529b\u3067\u6e21\u3059\u3002<\/p>\n<pre class=\"brush:bash\">\r\necho 'field1=data1&field2=data2' | POST http:\/\/wp.kaz.bz\/tech\/\r\n<\/pre>\n<p>POST\u30c7\u30fc\u30bf\u304c\u591a\u3044\u3068\u304d\u306f\u3001\u30d2\u30a2\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u3053\u3093\u306a\u611f\u3058\u306e\u65b9\u304c\u53ef\u8aad\u6027\u306f\u9ad8\u3044\u304b\u3082\u3002<br \/>\n<a href=\"333.html\">tr<\/a> \u306f\u7f6e\u63db\u30b3\u30de\u30f3\u30c9\u3002<\/p>\n<pre class=\"brush:bash\">\r\ncat << _EOT_ \\\r\n| tr -d \"\\n\" \\\r\n| POST http:\/\/wp.kaz.bz\/tech\/\r\nfield1=data1\r\n&field2=data2\r\n_EOT_\r\n<\/pre>\n<p>2010.12.06.\u8ffd\u8a18<br \/>\n\u3053\u3063\u3061\u306e\u65b9\u304c\u53ef\u8aad\u6027\u9ad8\u3044\u304b\u3082<\/p>\n<pre class=\"brush:bash\">\r\nURL=\"POST\u5148\u306eURL\"\r\n\r\nPOSTPARAM=$( cat <<_EOT_\r\nfield1=data1\r\n&field2=data2\r\n_EOT_ )\r\n\r\necho ${POSTPARAM} \\\r\n| tr -d \"\\n\" \\\r\n| POST ${URL}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>HTTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b3\u30de\u30f3\u30c9\u3002 perl\u30d9\u30fc\u30b9\u3089\u3057\u3044\u3002 CentOS\uff15\u7cfb\u3067yum \u306e\u5834\u5408 yum install perl-libwww-perl [GET] GET http:\/\/wp.kaz.bz\/tech\/ [PO [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[42],"tags":[83],"class_list":["post-325","post","type-post","status-publish","format-standard","hentry","category-cmdref","tag-lin"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":63,"url":"https:\/\/wp.kaz.bz\/tech\/2007\/06\/06\/63.html","url_meta":{"origin":325,"position":0},"title":"MySQL\u3067CSV\u30a8\u30af\u30b9\u30dd\u30fc\u30c8","author":"kaz. Suenaga","date":"2007\/06\/06","format":false,"excerpt":"\u53c2\u8003\uff1a http:\/\/www.si-linux.co.jp\/iww\/mysqldump.html [\u2026","rel":"","context":"MySQL","block_context":{"text":"MySQL","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/db\/mysql"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":774,"url":"https:\/\/wp.kaz.bz\/tech\/2011\/04\/06\/774.html","url_meta":{"origin":325,"position":1},"title":"CentOS 5 \u3067WOL\u3002","author":"kaz. Suenaga","date":"2011\/04\/06","format":false,"excerpt":"WOL = Wake On LAN\u3002 ethtool \u306b\u5165\u3063\u3066\u3044\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3044\u3044\u3089\u3057\u3044\u3002 \u5fc5\u8981\u306b\u5fdc\u3058\u2026","rel":"","context":"\u30b3\u30de\u30f3\u30c9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9","block_context":{"text":"\u30b3\u30de\u30f3\u30c9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9","link":"https:\/\/wp.kaz.bz\/tech\/category\/cmdref"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":15,"url":"https:\/\/wp.kaz.bz\/tech\/2009\/05\/12\/15.html","url_meta":{"origin":325,"position":2},"title":"diff \/ patch","author":"kaz. Suenaga","date":"2009\/05\/12","format":false,"excerpt":"\u53c2\u7167\uff09 http:\/\/linux.blog.kaone.net\/Entry\/13\/","rel":"","context":"\u30b3\u30de\u30f3\u30c9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9","block_context":{"text":"\u30b3\u30de\u30f3\u30c9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9","link":"https:\/\/wp.kaz.bz\/tech\/category\/cmdref"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":333,"url":"https:\/\/wp.kaz.bz\/tech\/2010\/10\/14\/333.html","url_meta":{"origin":325,"position":3},"title":"Linux\u306e tr \u30b3\u30de\u30f3\u30c9","author":"kaz. Suenaga","date":"2010\/10\/14","format":false,"excerpt":"\u7f6e\u63db\u30b3\u30de\u30f3\u30c9\u3002 \u7f6e\u63db\uff1a tr \u6587\u5b57\u52171 \u6587\u5b57\u52172 \u524a\u9664\uff1a tr -d \u6587\u5b57\u5217 \u3088\u304f\u4f7f\u3046\u306e\u306f\u6539\u884c\u524a\u9664\u3002\u2026","rel":"","context":"\u30b3\u30de\u30f3\u30c9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9","block_context":{"text":"\u30b3\u30de\u30f3\u30c9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9","link":"https:\/\/wp.kaz.bz\/tech\/category\/cmdref"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":947,"url":"https:\/\/wp.kaz.bz\/tech\/2011\/09\/02\/947.html","url_meta":{"origin":325,"position":4},"title":"CentOS\u7528 Apache Killer\u5bfe\u7b56\u7248 httpd \u306b\u3064\u3044\u3066\u3002","author":"kaz. Suenaga","date":"2011\/09\/02","format":false,"excerpt":"https:\/\/www.redhat.com\/security\/data\/cve\/CVE-2011-\u2026","rel":"","context":"Apache","block_context":{"text":"Apache","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/apache"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":83,"url":"https:\/\/wp.kaz.bz\/tech\/2006\/09\/20\/83.html","url_meta":{"origin":325,"position":5},"title":"\u627f\u8a8d\u524d\u306f\u30b3\u30e1\u30f3\u30c8\u6295\u7a3f\u672c\u4eba\u306b\u3082\u8868\u793a\u3057\u306a\u3044","author":"kaz. Suenaga","date":"2006\/09\/20","format":false,"excerpt":"wp-includes\/comment-functions.php comments_templat\u2026","rel":"","context":"WordPress","block_context":{"text":"WordPress","link":"https:\/\/wp.kaz.bz\/tech\/category\/web\/wordpress"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/comments?post=325"}],"version-history":[{"count":0,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/325\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/media?parent=325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/categories?post=325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/tags?post=325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}