This is not a duplicate of How to call Imgur API.
I tried to upload to imgur using its API, but (as my friends test) the API of imgur cannot be called in Chinese mainland. Then I found that halirutan has a technology to upload an image to imgur even without any account information via http://stackoverflow.com/upload/image. Now I can upload image to imgur by his function SEUploader`sendImage. Little pity is that he implemented it with Java code.
We can find his code here. I get nothing after researching his Java code. Can we do the same thing in pure Mathematica using new functions introduced in version 11.0 such as HTTPRequest, URLRead and so on?
"MIMEType" -> "image/png", then you don't need to search for".jpg". You can do something likeFirst[StringCases[URLRead[req, "Body"], RegularExpression["closeDialog\\(\"(.+)\"\\)"] -> "$1"]]. – J. M.'s missing motivation Apr 05 '17 at 04:35.jpgsometimes when the original file is.jpg– vapor Apr 05 '17 at 05:35StringCases[]code I gave should work no matter what the file extension is. – J. M.'s missing motivation Apr 05 '17 at 06:25