how to convert curl to OkHttp request?

curl http://localhost:4000 \-F operations='{ "query": "mutation($files: [Upload!]!) { multipleUpload(files: $files) }", "variables": { "files": [null, null] } }' \-F map='{ "0": ["variables.files.0"], "1": ["variables.files.1"] }' \-F 0=@29790917_421324748307799_3670926541498638899_n.jpg \-F 1=@29790917_421324748307799_3670926541498638899_n.jpg
  • 1
    The way to do it is to write Java code. Can you please show us what you have attempted?– Stephen COct 21 at 7:18

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.