---
title: "curl发送http请求保存结果到文件"
author: "bsr1983"
date: "2016-11-02T16:42:23Z"
tags: []
categories: ["互联网"]
slug: "curl-http"
draft: false
lastmod: "2016-11-02T16:42:23Z"
id: 2334920
url: "https://bsr1983.iteye.com/blog/2334920"
---

curl --header "Content-Type:application/json" 'http://hostname:ip/get/path' &gt; /save/to/path/filename.json