I’m certainly not using a certificate, just a standard oauth2 flow.
I assume you are suggesting I create a client object using client = HTTP.Client(tlsconfig=MbedTLS.SSLConfig(false))
and then pass this to the get like this HTTP.get(client, url; options...)
However I get ERROR: LoadError: UndefVarError: Client not defined
and I can’t find it in the HTTP.jl documentation.
What defines the structure of this string? Is this specific to HTTP.jl or the HTTP standards?
I’m feeling so inadequate in this area of Julia. Should I perhaps consider just using python code in julia for this stuff because it’s usage documentation/tutorials etc are so much better or would this just introduce another raft of problems?
Looking at the analogous API in Python’s requests module (which does take a dict), those values are encoded as content-type application/x-www-form-urlencoded:
So if you can do the same with HTTP.jl that should work. Here’s actually a post on this forum from some years ago, with exactly the same issue, but no answer :-(. There’s actually also a closed HTTP.jl issue to document exactly the thing you want here, but the docs were only updated for the case of POSTing JSON, although the issue does give a solution (see this comment):