iPlug2 Forum

Best method for GET requests in iPlug2

I need to do a GET request from my plugin and was wondering if there was a built-in method for this. If not, any suggestions on how to do this?

you can use jnetlib from WDL

1 Like

Where should I perform the GET request at? I’ve created an API to get a json list that will be displayed using IText on a control.

Well, definitely not on the audio thread. If you need the data even if the UI isn’t opened then not in an IControl. I expect you should do it on a new thread so as not to pause the main thread. You could do that in OnIdle(), but make sure it doesn’t do more work than nessecary (keep track of the status).