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.
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.
Yes, it is definitely possible.
Have a look here: java.net.HttpUrlConnection
Sample code can also be found there.