HTTP GET with Drafts on iOS and perhaps Mac

I’m wanting to issue HTTP GET requests (to a Raspberry Pi).

How would I best do it from Drafts? For example, would XMLHttpRequest work - in a javascript step?

I’d prefer a method that worked on both iOS and Mac, of course. But my prime use case is from an iPad over Bluetooth to a Raspberry Pi. (A connection without WiFi or Ethernet - which I have already made and tested.)

See the HTTP object in the scripting reference. There’s example code.

XMLHttpRequest is a browser-specific implementation of HTTP, not present in core JavaScript.

1 Like

Thanks. I’ll code something up and add it to my list of examples - in the blog post I’m going to write.