android-async-http icon indicating copy to clipboard operation
android-async-http copied to clipboard

How to send request with request method OPTIONS?

Open felikjunvianto opened this issue 11 years ago • 2 comments

Like the title suggest, how to send request with request method OPTIONS? After searching in Javadoc, I only found that the "The AsyncHttpClient can be used to make asynchronous GET, POST, PUT and DELETE HTTP requests in your Android applications."

AsyncHttpClient also don't have .options() method. Any workaround suggestion?

Thanks

felikjunvianto avatar Nov 08 '15 15:11 felikjunvianto

Well there hasn't been OPTIONS request support since now, I've provided that in 9c7b6d41e3b84a5d62dfc914c29536708fc7dcdb

For lower versions than 1.4.9.1 (which is currently future release), you can do a subclass of AsyncHttpClient class and call protected method sendRequest with appropriate params yourself

smarek avatar Nov 17 '15 16:11 smarek

Thanks for the information (and the include in newer version). It really helps :smile:

felikjunvianto avatar Nov 18 '15 04:11 felikjunvianto