---
title: "命令行模拟post请求"
author: "iamsk"
date: "2010-11-22T11:31:20Z"
tags: []
categories: ["Web前端"]
slug: "post"
draft: false
lastmod: "2010-11-22T11:31:20Z"
id: 819700
url: "https://iamsk.iteye.com/blog/819700"
---

记录，用于简单测试post请求

 

curl -F "opt=1" http://xxx

    content-type: multipart/form-data

 

curl -d "opt=1" http://xxx

    content-type: appli-cation/x-www-form-urlencoded

 

wget --post-data "opt=1" http://xxx