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 whyyyy is there a reference to the NIC? 🧐🤔
@atlauren @caseyliss That’s because all interfaces have an fe80:: address. So you need to let it know which interface that particular host is on
Link local is a special case. Each segment of the network has its own independent link local space. Link locals also all share a prefix, fe80::/10. When you have interfaces connected to different segments they will be physically separated while seemingly within the same address space. Regular prefix-based routing doesn’t work. Instead, a “zone index” is added to differentiate each segment. Unix-like systems use the NIC name as an index (the standard requires just a number too)