{"id":5531,"date":"2015-10-28T14:23:33","date_gmt":"2015-10-28T13:23:33","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=5531"},"modified":"2015-10-28T14:23:33","modified_gmt":"2015-10-28T13:23:33","slug":"curl-how-do-i-save-a-file-using-the-response-header-filename-with-curl","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2015\/10\/28\/curl-how-do-i-save-a-file-using-the-response-header-filename-with-curl\/","title":{"rendered":"cURL: how do I save a file using the response header filename with cURL"},"content":{"rendered":"<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/2698552\/how-do-i-save-a-file-using-the-response-header-filename-with-curl\">http:\/\/stackoverflow.com\/questions\/2698552\/how-do-i-save-a-file-using-the-response-header-filename-with-curl<\/a><\/li>\n<\/ul>\n<blockquote><p>This question relates to the command line version of cURL. I&#8217;m trying to download a file from a cgi script.http:\/\/someserver\/perl\/dl.pl?ID=2Using a browser the filename comes up as<\/p><\/blockquote>\n<ul>\n<li>curl &#8211;remote-header-name \u2026<\/li>\n<li>wget &#8211;content-disposition \u2026<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/stackoverflow.com\/questions\/2698552\/how-do-i-save-a-file-using-the-response-header-filename-with-curl This question relates to the command line version of cURL. I&#8217;m trying to download a file from a cgi script.http:\/\/someserver\/perl\/dl.pl?ID=2Using a browser the filename comes up as curl &#8211;remote-header-name \u2026 wget &#8211;content-disposition \u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-5531","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1rd","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/5531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=5531"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/5531\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=5531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=5531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=5531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}