I'm out of my depth.

I'm trying to make a URL GET request to a service I'm discovering via Bonjour.

I have gotten a NWBrowser.Result, and I've gotten an NWEndpoint.

The endpoint is an IPv6 link local address.

How the hell do I make a URLRequest to this? I don't seem to be able to construct a URL from what I've got, but I suspect I'm holding it wrong.

Again, this is probably simple, but I'm way out of my depth here.

Wait, it seems the presence of β€œ%en0" at the end may be the problem?

I can construct the URL without that, but actually connecting to that server with URLSession doesn't work.

(Worth noting it's HTTP not HTTPS; could ATS be stomping on me? If so, how would I know?)

@caseyliss the β€œ%en0” should only be needed for link-local addresses. All other address types should not need it.
@jgjl It is link local
@caseyliss without the interface id the OS cannot determine which interface to use, since the link local prefix is the same on all interfaces. Hence, it makes sense that you don’t get a connection without it.
@jgjl Okay, fair enough. But now I need to construct a URL from it so I can issue a HTTP request