Using content type application/x

I want to upload a file using java client to server where content type should be application/x-www-form-urlencoded .

Using java.net.URLConnection to fire and handle HTTP requests has nice explanation on how to use application/x-www-form-urlencoded but I coudn't find a way to upload file using this .

Are there any hints to do this? (Don't suggest to use multipart/form-data)

链接地址: http://www.djcxy.com/p/3782.html

上一篇: 身份验证和授权有区别吗?

下一篇: 使用内容类型application / x