mwdar
mwdar

Reputation: 141

How to post data to html form via java?

I have this html form

<form enctype="multipart/form-data" action="upload.php" method="POST">
        <textarea rows="5" cols="50" name="links" id="links" style="margin-left: 2px; margin-right: 2px; width: 428px; margin-top: 2px; margin-bottom: 2px; height: 149px; "></textarea>
        <input type="hidden" name="uploadtype" value="links">
        <br>
        <button type="submit" name="submit"></button>
        </form>

How to write some data in the text area and click the submit button using java?

Upvotes: 0

Views: 1407

Answers (1)

nidhin
nidhin

Reputation: 6910

You can try apache http client Http Client

And try latest "version" HttpClient

Example

Upvotes: 2

Related Questions