Skip to content

Instantly share code, notes, and snippets.

@Rokko11
Created February 11, 2020 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rokko11/8bb8a2167579b3229b9c0360d9fb97bd to your computer and use it in GitHub Desktop.
Save Rokko11/8bb8a2167579b3229b9c0360d9fb97bd to your computer and use it in GitHub Desktop.
This http call imports a flow file into H2O Flow. First the raw curl command, second the corresponding IntelliJ http file
###
POST http://localhost:54321/3/NodePersistentStorage.bin/notebook/my-model
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="my-model.flow"
< path/to/my-model.flow
--WebAppBoundary--
###
curl http://localhost:54321/3/NodePersistentStorage.bin/notebook/my-model \
-H "Content-Type: multipart/form-data" \
-F "file=@path/to/my-model.flow"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment