2

Can we create a HTTP request (GET or POST) programmatically.

Like in other protocols(ex : SIP) we can create a request programmatically but i have a doubt for HTTP.

2

3 Answers 3

2

Yes, it is definitely possible.

Have a look here: java.net.HttpUrlConnection

Sample code can also be found there.

Sign up to request clarification or add additional context in comments.

Comments

1

Take a look on HttpURLConnection.

Comments

1

Yes you can do it using HTTPURLConnection

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.