linux curl post file

1.curl上传文件

<formmethod="post"enctype="multipart/form-data"action="/s3c/samples/upload_add">

<inputtype="file"id="File"name="data[File]"><inputtype="submit"value="submit"name="uploads">

</form>

#有效路径

curl-Fdata[File][email protected]=submithttp://192.168.1.219/s3c/samples/upload_add

2.curlurl

获得url的内容

相关推荐