Example1_ESP32_Get_Swarm_TLEs
The Arduino code seems to form the URL to celestrak correctly and I can use it in a browser to get the TLE data.
However, code 301 indicates a problem.
How to deal with this issue?
From the Serial Monitor:
WiFi connected!
17:17:44.853 → Requesting the Swarm TLE data from CelesTrak
17:17:44.853 → HTTP URL is: https://celestrak.com/NORAD/elements/gp … FORMAT=TLE
17:17:46.868 → [HTTP] GET… code: 301
17:17:46.868 → The Swarm TLE data has been saved to SD card
…
DIR : System Volume Information
17:18:06.249 → FILE: swarmPP.txt SIZE: 202603
17:18:06.249 → FILE: mySwarm.txt SIZE: 0
17:18:06.249 → FILE: swarmTLE.txt SIZE: 0