How can i programmatically upload a file to a website?

后端 未结 5 1402
没有蜡笔的小新
没有蜡笔的小新 2020-11-28 12:10

I have to upload a file to a server which only exposes a jsf web page with file upload button (over http). I have to automate a process (done as java stand alone process) wh

5条回答
  •  青春惊慌失措
    2020-11-28 12:55

    Try using HttpClient, here's an article that I think describes what you want, towards the bottom there's a section titled "Using HttpClient-Based FileUpload".

    Hope this helps.

提交回复
热议问题