android - HttpURLConnection set method before connection made -


just quick one, have looked around , there doesn't seem 1 else asking same questions. wondering if possible set request method before connection opened when new httpurlconnection made.

thanks

according docs:

httpurlconnection uses method default. use post if setdooutput(true) has been called. other http methods (options, head, put, delete , trace) can used setrequestmethod(string).


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -