Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The following PHP code example demonstrates how to configure a connection to download data from an Earthdata Login enabled server. The first example takes advantage of the .netrc file for configuring usernames and passwords (see this page for details on how to set up a .netrc file). If this is not an option, the second code example demonstrates how to provide credentials directly (you will need to find a secure way to configure the credentials).

...