Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #129319 > unrolled thread

Apple Maps URL interception mechanism.

Started byJF Mezei <jfmezei.spamnot@vaxination.ca>
First post2020-01-27 03:28 -0500
Last post2020-02-11 09:40 +0000
Articles 20 on this page of 41 — 7 participants

Back to article view | Back to comp.sys.mac.system


Contents

  Apple Maps URL interception mechanism. JF Mezei <jfmezei.spamnot@vaxination.ca> - 2020-01-27 03:28 -0500
    Re: Apple Maps URL interception mechanism. richard@cogsci.ed.ac.uk (Richard Tobin) - 2020-01-27 14:01 +0000
    Re: Apple Maps URL interception mechanism. Lewis <g.kreme@gmail.com.dontsendmecopies> - 2020-01-27 14:06 +0000
      Re: Apple Maps URL interception mechanism. JF Mezei <jfmezei.spamnot@vaxination.ca> - 2020-01-27 13:24 -0500
        Re: Apple Maps URL interception mechanism. David Ritz <dritz@mindspring.com> - 2020-01-27 14:24 -0600
          Re: Apple Maps URL interception mechanism. JF Mezei <jfmezei.spamnot@vaxination.ca> - 2020-01-28 01:13 -0500
        Re: Apple Maps URL interception mechanism. Lewis <g.kreme@gmail.com.dontsendmecopies> - 2020-01-27 22:42 +0000
          Re: Apple Maps URL interception mechanism. Alan Baker <nunya@ness.biz> - 2020-01-27 14:59 -0800
            Re: Apple Maps URL interception mechanism. Lewis <g.kreme@gmail.com.dontsendmecopies> - 2020-01-28 14:31 +0000
              Re: Apple Maps URL interception mechanism. Jolly Roger <jollyroger@pobox.com> - 2020-01-28 18:10 +0000
    Re: Apple Maps URL interception mechanism. Jolly Roger <jollyroger@pobox.com> - 2020-01-28 18:17 +0000
      Re: Apple Maps URL interception mechanism. JF Mezei <jfmezei.spamnot@vaxination.ca> - 2020-01-28 15:30 -0500
        Re: Apple Maps URL interception mechanism. Jolly Roger <jollyroger@pobox.com> - 2020-01-28 22:11 +0000
        Re: Apple Maps URL interception mechanism. Lewis <g.kreme@gmail.com.dontsendmecopies> - 2020-01-28 23:36 +0000
    Re: Apple Maps URL interception mechanism. Alan Browne <bitbucket@blackhole.com> - 2020-01-31 18:04 -0500
    Re: Apple Maps URL interception mechanism. Alan Browne <bitbucket@blackhole.com> - 2020-02-01 18:51 -0500
      Re: Apple Maps URL interception mechanism. Jolly Roger <jollyroger@pobox.com> - 2020-02-02 04:00 +0000
        Re: Apple Maps URL interception mechanism. Alan Browne <bitbucket@blackhole.com> - 2020-02-02 12:59 -0500
        Re: Apple Maps URL interception mechanism. JF Mezei <jfmezei.spamnot@vaxination.ca> - 2020-02-02 17:41 -0500
          Re: Apple Maps URL interception mechanism. Lewis <g.kreme@gmail.com.dontsendmecopies> - 2020-02-04 20:13 +0000
            Re: Apple Maps URL interception mechanism. JF Mezei <jfmezei.spamnot@vaxination.ca> - 2020-02-05 02:23 -0500
              Re: Apple Maps URL interception mechanism. Lewis <g.kreme@gmail.com.dontsendmecopies> - 2020-02-05 21:45 +0000
                Re: Apple Maps URL interception mechanism. JF Mezei <jfmezei.spamnot@vaxination.ca> - 2020-02-05 18:25 -0500
                  Re: Apple Maps URL interception mechanism. Lewis <g.kreme@gmail.com.dontsendmecopies> - 2020-02-06 01:20 +0000
                    Re: Apple Maps URL interception mechanism. JF Mezei <jfmezei.spamnot@vaxination.ca> - 2020-02-05 23:49 -0500
                      Re: Apple Maps URL interception mechanism. Lewis <g.kreme@gmail.com.dontsendmecopies> - 2020-02-06 05:50 +0000
                      Re: Apple Maps URL interception mechanism. Lewis <g.kreme@gmail.com.dontsendmecopies> - 2020-02-06 05:53 +0000
              Re: Apple Maps URL interception mechanism. richard@cogsci.ed.ac.uk (Richard Tobin) - 2020-02-06 16:16 +0000
                Re: Apple Maps URL interception mechanism. JF Mezei <jfmezei.spamnot@vaxination.ca> - 2020-02-06 15:07 -0500
                  Re: Apple Maps URL interception mechanism. richard@cogsci.ed.ac.uk (Richard Tobin) - 2020-02-06 20:43 +0000
                    Re: Apple Maps URL interception mechanism. JF Mezei <jfmezei.spamnot@vaxination.ca> - 2020-02-06 16:05 -0500
                      Re: Apple Maps URL interception mechanism. Jolly Roger <jollyroger@pobox.com> - 2020-02-11 09:48 +0000
                        Re: Apple Maps URL interception mechanism. JF Mezei <jfmezei.spamnot@vaxination.ca> - 2020-02-11 14:32 -0500
                          Re: Apple Maps URL interception mechanism. Lewis <g.kreme@gmail.com.dontsendmecopies> - 2020-02-12 05:16 +0000
                            Re: Apple Maps URL interception mechanism. JF Mezei <jfmezei.spamnot@vaxination.ca> - 2020-02-12 02:23 -0500
                              Re: Apple Maps URL interception mechanism. Jolly Roger <jollyroger@pobox.com> - 2020-02-12 10:22 +0000
                              Re: Apple Maps URL interception mechanism. Lewis <g.kreme@gmail.com.dontsendmecopies> - 2020-02-12 22:24 +0000
                          Re: Apple Maps URL interception mechanism. Jolly Roger <jollyroger@pobox.com> - 2020-02-12 10:20 +0000
                  Re: Apple Maps URL interception mechanism. Lewis <g.kreme@gmail.com.dontsendmecopies> - 2020-02-06 22:49 +0000
                  Re: Apple Maps URL interception mechanism. Jolly Roger <jollyroger@pobox.com> - 2020-02-11 09:43 +0000
          Re: Apple Maps URL interception mechanism. Jolly Roger <jollyroger@pobox.com> - 2020-02-11 09:40 +0000

Page 1 of 3  [1] 2 3  Next page →


#129319 — Apple Maps URL interception mechanism.

FromJF Mezei <jfmezei.spamnot@vaxination.ca>
Date2020-01-27 03:28 -0500
SubjectApple Maps URL interception mechanism.
Message-ID<saxXF.124934$db6.49433@fx33.iad>

If I ask Firefox to go to the follwoing URL:

http://maps.apple.com/?q=11:45&ll=-32.397491,134.623536&t=k

(It's somewhere on the Gawler Ranges road where my GPS indicates I
stopped, aka: potential location where I can geolocate and timestamp a
slide I took in 1998).

What mechanism causes the Apple Maps application to open and respond to
the request when Firefox tries to process it?

does "maps.apple.com" get intercepted by the local Mac's DNS resolver
which then responds with a special IP, and the resolver launches the
Appe Maps app which then listens on thats pecial IP address and gets
Firefox' HTTP request ?

?


[toc] | [next] | [standalone]


#129322

Fromrichard@cogsci.ed.ac.uk (Richard Tobin)
Date2020-01-27 14:01 +0000
Message-ID<r0mqf4$2oip$1@macpro.inf.ed.ac.uk>
In reply to#129319
In article <saxXF.124934$db6.49433@fx33.iad>,
JF Mezei  <jfmezei.spamnot@vaxination.ca> wrote:

>If I ask Firefox to go to the follwoing URL:
>
>http://maps.apple.com/?q=11:45&ll=-32.397491,134.623536&t=k
>
>(It's somewhere on the Gawler Ranges road where my GPS indicates I
>stopped, aka: potential location where I can geolocate and timestamp a
>slide I took in 1998).
>
>What mechanism causes the Apple Maps application to open and respond to
>the request when Firefox tries to process it?

Probably it returns a document with a mime type that the Firefox or
the operating system knows is handled by Maps.

-- Richard

[toc] | [prev] | [next] | [standalone]


#129323

FromLewis <g.kreme@gmail.com.dontsendmecopies>
Date2020-01-27 14:06 +0000
Message-ID<slrnr2trja.124n.g.kreme@ProMini.lan>
In reply to#129319
In message <saxXF.124934$db6.49433@fx33.iad> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:


> If I ask Firefox to go to the follwoing URL:

> http://maps.apple.com/?q=11:45&ll=-32.397491,134.623536&t=k

> (It's somewhere on the Gawler Ranges road where my GPS indicates I
> stopped, aka: potential location where I can geolocate and timestamp a
> slide I took in 1998).

> What mechanism causes the Apple Maps application to open and respond to
> the request when Firefox tries to process it?

Congratulations on finally learning how to punctuate properly!

> does "maps.apple.com" get intercepted by the local Mac's DNS resolver
> which then responds with a special IP, and the resolver launches the
> Appe Maps app which then listens on thats pecial IP address and gets
> Firefox' HTTP request ?

Oh, you backslid again. Really, this is something you should have
learned in primary school.

Have you tried looking at what that URL actually returns?

-- 
I think it would be fun to run a newspaper.

[toc] | [prev] | [next] | [standalone]


#129324

FromJF Mezei <jfmezei.spamnot@vaxination.ca>
Date2020-01-27 13:24 -0500
Message-ID<XVFXF.235112$aD6.196726@fx38.iad>
In reply to#129323
On 2020-01-27 09:06, Lewis wrote:

> Have you tried looking at what that URL actually returns?



Of course I did.

curl -I http://maps.apple.com/&q=11:45&ll=-32.397491,134.623536&t=k

HTTP/1.1 302 Moved Temporarily
Server: AkamaiGHost
Content-Length: 0
Location: https://www.apple.com/ios/maps/
Expires: Mon, 27 Jan 2020 18:18:01 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Mon, 27 Jan 2020 18:18:01 GMT
Connection: keep-alive
Strict-Transport-Security: max-age=31536000


Note the redirect loses the actual map request parameters. The actual
content is 0 bytes (normal for a redirect) so there is no content type
that would result in Firefox saving the content to a file and calling an
app with that file as parameter.

The apple.com/ios/maps is a generic marketing page at Apple.

So there appears to be some magic that happens when doing this request
via the Apple GUI frameworks vs doing it at the Unix command line and
hence my question which you , as usual, treated as an opportunity to insult.

[toc] | [prev] | [next] | [standalone]


#129325

FromDavid Ritz <dritz@mindspring.com>
Date2020-01-27 14:24 -0600
Message-ID<alpine.OSX.2.21.2001271420280.2266@mako.ath.cx>
In reply to#129324

[Multipart message — attachments visible in raw view] — view raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday, 27 January 2020 13:24 -0500, 
 in article <XVFXF.235112$aD6.196726@fx38.iad>, 
 JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:

> So there appears to be some magic that happens when doing this 
> request via the Apple GUI frameworks vs doing it at the Unix command 
> line and hence my question which you , as usual, treated as an 
> opportunity to insult.

The 'magic', to which you refer, is a javascript call for Maps.app.

- -- 
David Ritz <dritz@mindspring.com>
 "Any sufficiently advanced technology is indistinguishable from magic."
                                       -- Arthur C. Clarke (1917–2008)
-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQSc0FU3XAVGYDjSGUhSvCmZGhLe6wUCXi9G5gAKCRBSvCmZGhLe
62RKAJ9ezmX3oITZ9+CDgs/M48yAVhyrrgCgr+duaLsR3NcasxT/z7xHQNUQkVc=
=0oEh
-----END PGP SIGNATURE-----

[toc] | [prev] | [next] | [standalone]


#129336

FromJF Mezei <jfmezei.spamnot@vaxination.ca>
Date2020-01-28 01:13 -0500
Message-ID<eiQXF.88399$0k2.49232@fx06.iad>
In reply to#129325
On 2020-01-27 15:24, David Ritz wrote:

> The 'magic', to which you refer, is a javascript call for Maps.app.

With javascript disabled.
http://maps.apple.com/&q=11:45&ll=-32.397491,134.623536&t=k

still causes Firefox to start the Mapps App which opens at that
latitude/longitude.


[toc] | [prev] | [next] | [standalone]


#129328

FromLewis <g.kreme@gmail.com.dontsendmecopies>
Date2020-01-27 22:42 +0000
Message-ID<slrnr2upqd.1bj3.g.kreme@ProMini.lan>
In reply to#129324
In message <XVFXF.235112$aD6.196726@fx38.iad> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
> On 2020-01-27 09:06, Lewis wrote:

>> Have you tried looking at what that URL actually returns?



> Of course I did.

> curl -I http://maps.apple.com/&q=11:45&ll=-32.397491,134.623536&t=k

Curl will not return the same results as firefox.

-- 
It wasn't that her [Susan's] parents didn't believe in such things.
	They didn't need to believe in them. They knew they existed. They
	just wished they didn't.

[toc] | [prev] | [next] | [standalone]


#129329

FromAlan Baker <nunya@ness.biz>
Date2020-01-27 14:59 -0800
Message-ID<r0nq0s$1dsj$1@gioia.aioe.org>
In reply to#129328
On 2020-01-27 2:42 p.m., Lewis wrote:
> In message <XVFXF.235112$aD6.196726@fx38.iad> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
>> On 2020-01-27 09:06, Lewis wrote:
> 
>>> Have you tried looking at what that URL actually returns?
> 
> 
> 
>> Of course I did.
> 
>> curl -I http://maps.apple.com/&q=11:45&ll=-32.397491,134.623536&t=k
> 
> Curl will not return the same results as firefox.
> 

You mean you don't know how to get curl to return the same results as 
Firefox...

[toc] | [prev] | [next] | [standalone]


#129339

FromLewis <g.kreme@gmail.com.dontsendmecopies>
Date2020-01-28 14:31 +0000
Message-ID<slrnr30hdo.1p0o.g.kreme@ProMini.lan>
In reply to#129329
In message <r0nq0s$1dsj$1@gioia.aioe.org> Alan Baker <nunya@ness.biz> wrote:
> On 2020-01-27 2:42 p.m., Lewis wrote:
>> In message <XVFXF.235112$aD6.196726@fx38.iad> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
>>> On 2020-01-27 09:06, Lewis wrote:
>> 
>>>> Have you tried looking at what that URL actually returns?
>> 
>> 
>> 
>>> Of course I did.
>> 
>>> curl -I http://maps.apple.com/&q=11:45&ll=-32.397491,134.623536&t=k
>> 
>> Curl will not return the same results as firefox.
>> 

> You mean you don't know how to get curl to return the same results as 
> Firefox...

No, I mean what JF did will not.

-- 
"But you read a lot of books, I'm thinking. Hard to have faith, ain't
	it, when you've read too many books?"

[toc] | [prev] | [next] | [standalone]


#129341

FromJolly Roger <jollyroger@pobox.com>
Date2020-01-28 18:10 +0000
Message-ID<h9bbosF13euU1@mid.individual.net>
In reply to#129339
On 2020-01-28, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
> In message <r0nq0s$1dsj$1@gioia.aioe.org> Alan Baker <nunya@ness.biz> wrote:
>> On 2020-01-27 2:42 p.m., Lewis wrote:
>>> In message <XVFXF.235112$aD6.196726@fx38.iad> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
>>>> On 2020-01-27 09:06, Lewis wrote:
>>> 
>>>>> Have you tried looking at what that URL actually returns?
>>> 
>>>> Of course I did.
>>> 
>>>> curl -I http://maps.apple.com/&q=11:45&ll=-32.397491,134.623536&t=k
>>> 
>>> Curl will not return the same results as firefox.
>
>> You mean you don't know how to get curl to return the same results as 
>> Firefox...
>
> No, I mean what JF did will not.

But it certainly could. : )

-- 
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR

[toc] | [prev] | [next] | [standalone]


#129342

FromJolly Roger <jollyroger@pobox.com>
Date2020-01-28 18:17 +0000
Message-ID<h9bc6fF13euU2@mid.individual.net>
In reply to#129319
On 2020-01-27, JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
>
> If I ask Firefox to go to the follwoing URL:
>
> http://maps.apple.com/?q=11:45&ll=-32.397491,134.623536&t=k
>
> (It's somewhere on the Gawler Ranges road where my GPS indicates I
> stopped, aka: potential location where I can geolocate and timestamp a
> slide I took in 1998).
>
> What mechanism causes the Apple Maps application to open and respond
> to the request when Firefox tries to process it?
>
> does "maps.apple.com" get intercepted by the local Mac's DNS resolver
> which then responds with a special IP, and the resolver launches the
> Appe Maps app which then listens on thats pecial IP address and gets
> Firefox' HTTP request ?

Nope. LOL... Talk about over engineering...

You troll with FUD here so much, it's no wonder nobody is willing to
help you out. And your insistence on adding a space between the end of a
sentence and the ending punctuation doesn't help either. You're a hard
headed dimwit troll, for sure.

I'll throw you a bone or two though - Arlen style, just for grins.

o Think about how a user agent might affect a web server's response. 
o Also, research how macOS and iOS apps can define custom URL schemes.

Have fun !  ; D

-- 
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR

[toc] | [prev] | [next] | [standalone]


#129345

FromJF Mezei <jfmezei.spamnot@vaxination.ca>
Date2020-01-28 15:30 -0500
Message-ID<wR0YF.14786$py.2560@fx31.iad>
In reply to#129342
On 2020-01-28 13:17, Jolly Roger wrote:

> o Think about how a user agent might affect a web server's response. 

a browser needs a response containing data from a remote host to get the
Content Type: field from which it can decide how to handle the content
of the respnse.  the curl  app provided 0 bytes of content in the initia
redirect and the redirect pointed to generic marketing page on IOS Maps.
(HTML content).


> o Also, research how macOS and iOS apps can define custom URL schemes.

This got me the hint I needed. Althoiugh this is not a custom URL Scheme
such as facetime:, tel: , the maps use standard http:// which is not a
custom URL scheme.

The documentation I found does confirm that some hosts are captured by
the openURL scheme in the GUI framework and it intercepts certain hosts
names such as the maps.apple.com, itunes and for IOS youtube)



I am however quite curious about you and your ilk's statements that you
could make curl behave like firefox.  An open source unix utility would
not be using proprietary Apple GUI APIs so there would be no code to
intercept a request to maps.apple.com

note:
 open "http://maps.apple.com/&q=11:45&ll=-32.397491,134.623536&t=k"

it sees the http: and sends it to Firefox. (which then gets it sent to
Maps when it tries to access it).  This points to even the Apple-only
"open"  not using the GUI code capable of intercepting certain URLs.

[toc] | [prev] | [next] | [standalone]


#129351

FromJolly Roger <jollyroger@pobox.com>
Date2020-01-28 22:11 +0000
Message-ID<h9bps0F43c2U1@mid.individual.net>
In reply to#129345
On 2020-01-28, JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
> On 2020-01-28 13:17, Jolly Roger wrote:
>
>> o Think about how a user agent might affect a web server's response. 
>
> a browser needs a response containing data from a remote host to get the
> Content Type: field from which it can decide how to handle the content
> of the respnse.  the curl  app provided 0 bytes of content in the initia
> redirect and the redirect pointed to generic marketing page on IOS Maps.
> (HTML content).

I said "user agent" - not "content type". A swing and a miss from you on
this one. Pity.

>> o Also, research how macOS and iOS apps can define custom URL schemes.
>
> This got me the hint I needed. Althoiugh this is not a custom URL Scheme
> such as facetime:, tel: , the maps use standard http:// which is not a
> custom URL scheme.

Wrong. Had you bitten on the first bone I gave you, you would have
arrived at a completely different conclusion for the second bone. 

Your trolling has come back to haunt you. I could have explained how it
works, but chose not to, because fuck you. Too bad, so sad. Stay ignorant. 

> I am however quite curious about you and your ilk's statements that you
> could make curl behave like firefox. 

But not curious enough to do the minimal amount of research needed to
figure it out on your own. Pity.

-- 
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR

[toc] | [prev] | [next] | [standalone]


#129353

FromLewis <g.kreme@gmail.com.dontsendmecopies>
Date2020-01-28 23:36 +0000
Message-ID<slrnr31hb2.21as.g.kreme@ProMini.lan>
In reply to#129345
In message <wR0YF.14786$py.2560@fx31.iad> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
> I am however quite curious about you and your ilk's statements that you
> could make curl behave like firefox.  An open source unix utility would
> not be using proprietary Apple GUI APIs so there would be no code to
> intercept a request to maps.apple.com

Well, you are the obvious super expert know-everything here, so no point
in anyone else saying anything.

I mean, other than, "Idiot!"

-- 
Truth is seen through keyholes

[toc] | [prev] | [next] | [standalone]


#129513

FromAlan Browne <bitbucket@blackhole.com>
Date2020-01-31 18:04 -0500
Message-ID<jeGdnfUSk9IOL6nDnZ2dnUU7-S_NnZ2d@giganews.com>
In reply to#129319
On 2020-01-27 03:28, JF Mezei wrote:
> 
> 
> If I ask Firefox to go to the follwoing URL:
> 
> http://maps.apple.com/?q=11:45&ll=-32.397491,134.623536&t=k

I) If  hit that link in Thunderbird, then the Maps app opens on my Mac 
and goes to that location.

II) If I paste that link via Chrome I get a message:
         "Open Maps?   A website wants to open this application.
                         =======

					Cancel|Open Maps"

So would appear to be that maps.apple.com sees that you're using a Mac 
and replies with a "start maps app" code (HTML5?) to the Mac via the 
browser and the browser intercepts that and asks the user if it's okay 
before launching the Maps app.


III) As an aside I fired up Chrome in a VM running Windows.

When I paste your link into that, Google Maps (website) fires up at that 
location.

[toc] | [prev] | [next] | [standalone]


#129626

FromAlan Browne <bitbucket@blackhole.com>
Date2020-02-01 18:51 -0500
Message-ID<4KWdnbHNv-uWkqvDnZ2dnUU7-YmdnZ2d@giganews.com>
In reply to#129319
On 2020-01-27 03:28, JF Mezei wrote:
> 
> 
> If I ask Firefox to go to the follwoing URL:
> 
> http://maps.apple.com/?q=11:45&ll=-32.397491,134.623536&t=k
> 
> (It's somewhere on the Gawler Ranges road where my GPS indicates I
> stopped, aka: potential location where I can geolocate and timestamp a
> slide I took in 1998).
> 
> What mechanism causes the Apple Maps application to open and respond to
> the request when Firefox tries to process it?
> 
> does "maps.apple.com" get intercepted by the local Mac's DNS resolver
> which then responds with a special IP, and the resolver launches the
> Appe Maps app which then listens on thats pecial IP address and gets
> Firefox' HTTP request ?

I had replied to this - but I don't see it here.  So ... once more...
----

I) If  hit that link in Thunderbird, then the Maps app opens on my Mac 
and goes to that location.

II) If I paste that link via Chrome I get a message:
         "Open Maps?   A website wants to open this application.
                         =======

                     Cancel|Open Maps"

So would appear to be that maps.apple.com sees that you're using a Mac 
and replies with a "start maps app" code (HTML5?) to the Mac via the 
browser and the browser intercepts that and asks the user if it's okay 
before launching the Maps app.


III) As an aside I fired up Chrome in a VM running Windows.

When I paste your link into that, Google Maps (website) fires up at that 
geographic location.

[toc] | [prev] | [next] | [standalone]


#129665

FromJolly Roger <jollyroger@pobox.com>
Date2020-02-02 04:00 +0000
Message-ID<h9mvqjFebdvU1@mid.individual.net>
In reply to#129626
On 2020-02-01, Alan Browne <bitbucket@blackhole.com> wrote:
> On 2020-01-27 03:28, JF Mezei wrote:
>> 
>> 
>> If I ask Firefox to go to the follwoing URL:
>> 
>> http://maps.apple.com/?q=11:45&ll=-32.397491,134.623536&t=k
>> 
>> (It's somewhere on the Gawler Ranges road where my GPS indicates I
>> stopped, aka: potential location where I can geolocate and timestamp a
>> slide I took in 1998).
>> 
>> What mechanism causes the Apple Maps application to open and respond to
>> the request when Firefox tries to process it?
>> 
>> does "maps.apple.com" get intercepted by the local Mac's DNS resolver
>> which then responds with a special IP, and the resolver launches the
>> Appe Maps app which then listens on thats pecial IP address and gets
>> Firefox' HTTP request ?
>
> I had replied to this - but I don't see it here.  So ... once more...
> ----
>
> I) If  hit that link in Thunderbird, then the Maps app opens on my Mac 
> and goes to that location.
>
> II) If I paste that link via Chrome I get a message:
>          "Open Maps?   A website wants to open this application.
>                          =======
>
>                      Cancel|Open Maps"
>
> So would appear to be that maps.apple.com sees that you're using a Mac 
> and replies with a "start maps app" code (HTML5?) to the Mac via the 
> browser and the browser intercepts that and asks the user if it's okay 
> before launching the Maps app.

No, the web server simply looks at the user agent, and for Macs returns
a 302 with a different schema that the system recognizes as a Maps URL,
as I already explained, but JF Mezei was too dense to comprehend.

-- 
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR

[toc] | [prev] | [next] | [standalone]


#129681

FromAlan Browne <bitbucket@blackhole.com>
Date2020-02-02 12:59 -0500
Message-ID<vYOdneMwiL96kKrDnZ2dnUU7-fPNnZ2d@giganews.com>
In reply to#129665
On 2020-02-01 23:00, Jolly Roger wrote:
> On 2020-02-01, Alan Browne <bitbucket@blackhole.com> wrote:
>> On 2020-01-27 03:28, JF Mezei wrote:
>>>
>>>
>>> If I ask Firefox to go to the follwoing URL:
>>>
>>> http://maps.apple.com/?q=11:45&ll=-32.397491,134.623536&t=k
>>>
>>> (It's somewhere on the Gawler Ranges road where my GPS indicates I
>>> stopped, aka: potential location where I can geolocate and timestamp a
>>> slide I took in 1998).
>>>
>>> What mechanism causes the Apple Maps application to open and respond to
>>> the request when Firefox tries to process it?
>>>
>>> does "maps.apple.com" get intercepted by the local Mac's DNS resolver
>>> which then responds with a special IP, and the resolver launches the
>>> Appe Maps app which then listens on thats pecial IP address and gets
>>> Firefox' HTTP request ?
>>
>> I had replied to this - but I don't see it here.  So ... once more...
>> ----
>>
>> I) If  hit that link in Thunderbird, then the Maps app opens on my Mac
>> and goes to that location.
>>
>> II) If I paste that link via Chrome I get a message:
>>           "Open Maps?   A website wants to open this application.
>>                           =======
>>
>>                       Cancel|Open Maps"
>>
>> So would appear to be that maps.apple.com sees that you're using a Mac
>> and replies with a "start maps app" code (HTML5?) to the Mac via the
>> browser and the browser intercepts that and asks the user if it's okay
>> before launching the Maps app.
> 
> No, the web server simply looks at the user agent, and for Macs returns
> a 302 with a different schema that the system recognizes as a Maps URL,
> as I already explained, but JF Mezei was too dense to comprehend.

The Open Maps query is from Chrome and sits in the Chrome Window.  (Move 
the window around and it sticks to the same centred location).
https://www.dropbox.com/s/jg8meq1hztq0gt6/ChromAppMaps.png?dl=0

Here, if I switch to a tab while the query to user is still pending, the 
blue dot on the Chrome tab reminds the user that there is a pending 
action within Chrome on that tab.  (The action to open maps).
https://www.dropbox.com/s/wsj16k10y9dqycf/ChromAppMaps-OT.png?dl=0

And as I said in the preceding post, if I do the same thing in MS 
Windows Chrome, Chrome converts it to a maps.google.com link.  (Whether 
it does this before the outbound request or on the maps.apple.com reply 
is not certain, but probably the later).

[toc] | [prev] | [next] | [standalone]


#129685

FromJF Mezei <jfmezei.spamnot@vaxination.ca>
Date2020-02-02 17:41 -0500
Message-ID<QeIZF.110403$_R3.96735@fx36.iad>
In reply to#129665
On 2020-02-01 23:00, Jolly Roger wrote:

> No, the web server simply looks at the user agent, and for Macs returns
> a 302 with a different schema that the system recognizes as a Maps URL,
> as I already explained, but JF Mezei was too dense to comprehend.

My first post explained that I saw the 302 respnses with the curl
command. So I perfectly understand. However, the 302 pointed to a
generic Apple Maps page, not a web version of the requested area by
latitude/longitude.




> 

[toc] | [prev] | [next] | [standalone]


#129802

FromLewis <g.kreme@gmail.com.dontsendmecopies>
Date2020-02-04 20:13 +0000
Message-ID<slrnr3jk2p.1cba.g.kreme@ProMini.lan>
In reply to#129685
In message <QeIZF.110403$_R3.96735@fx36.iad> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
> On 2020-02-01 23:00, Jolly Roger wrote:

>> No, the web server simply looks at the user agent, and for Macs returns
>> a 302 with a different schema that the system recognizes as a Maps URL,
>> as I already explained, but JF Mezei was too dense to comprehend.

> My first post explained that I saw the 302 respnses with the curl
> command. So I perfectly understand.

No, as usual you have taken one piece of information and made the
idiotic assumption that it explains everything.

> However, the 302 pointed to a generic Apple Maps page, not a web
> version of the requested area by latitude/longitude.

First of all, no it didn't, you just didn't understand *at all* what was
displayed.

Second of all, you made ignorant and idiotic assumptions that are
entirely *spectacularly* incorrect.

-- 
But just because you've seen me on your TV Doesn't mean I'm any more
	enlightened than you

[toc] | [prev] | [next] | [standalone]


Page 1 of 3  [1] 2 3  Next page →

Back to top | Article view | comp.sys.mac.system


csiph-web