...
Code Block |
---|
> curl -nL -b ~/.cookies -c ~/.cookies 'https://<host>/egi/request' -o /dev/null |
If a session has not already been established, this will force curl to provide credentials to Earthdata Login and then save the session cookie. Subsequent requests will submit the session cookie and thus avoid the need for further authentication until the session expires. Session expiration is specific to each EGI instance but in most cases should be at least a few hours.
...