Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra arguments for curl handle #13

Open
djhurio opened this issue Sep 4, 2023 · 0 comments
Open

Extra arguments for curl handle #13

djhurio opened this issue Sep 4, 2023 · 0 comments

Comments

@djhurio
Copy link

djhurio commented Sep 4, 2023

I have to add extra arguments for curl handle in my environment. Those arguments are proxyusername, proxyuserpwd, proxyauth, useragent. I have managed to add them to the c.handle object in "api.R" file (in three places). This works for some cases. But not for all. Some examples are still failing with 407 error. For example:

> # search Landsat-5 images using rtoi
> rsat_search(
+   region = navarre,
+   product = "LANDSAT_TM_C1",
+   dates = as.Date("1988-08-01") + seq(1, 35)
+ )
Searching scenes in the LANDSAT_TM_C1 product...
Error in curl::curl_fetch_memory(url, handle = handle) :
Received HTTP code 407 from proxy after CONNECT

Could you please point me to the place in code where the handle is defined for this example? Thanks!

@djhurio djhurio changed the title Extra arguyments Extra arguments for curl handle Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant