I'm back at my computer and the curl -L command below worked for me. 

John, try this and see what it does?

curl -L 
"http://earthquake.usgs.gov/fdsnws/event/1/query?limit=1&lat=37.212907&lon=-89.529325&maxradiuskm=1000&format=geojson&nodata=204&minmag=2";



On Monday, September 10, 2018 at 12:23:58 PM UTC-4, Pat wrote:
>
> Interesting. Urllib2 should follow redirect to https  
>
> I hadn't tried with curl, but if you try with curl -L, what happens? It 
> should follow the https redirect. 
>
> Pat
>
> On Mon, Sep 10, 2018, 12:14 PM Thomas Keffer <> wrote:
>
>> On Mon, Sep 10, 2018 at 9:11 AM Pat <> wrote:
>>
>>> USGS will auto-promote the client to https.
>>>
>>
>> It didn't for me. I tried 
>>
>> curl 
>> http://earthquake.usgs.gov/fdsnws/event/1/query?limit=1&lat=37.212907&lon=-89.529325&maxradiuskm=1000&format=geojson&nodata=204&minmag=2
>>
>> and it came back with an HTML page that said the resource had "moved 
>> permanently."
>>
>> -tk
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "weewx-user" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/weewx-user/SrYsEdp9eK8/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to