Received HTTP code 407 from proxy after CONNECT


I am trying to use proxy to download data from websites.


my_proxy <- use_proxy(url="",
                     user_name = "myusername",
                     password = "mypassword",
                     auth = "one of basic, digest, digest_ie, gssnegotiate, ntlm, any") <- ",5"
scholar_webpage <- html_session(,my_proxy) %>%

However, one error always comes up

Error in curl::curl_fetch_memory(url, handle = handle) :
Received HTTP code 407 from proxy after CONNECT
9. curl::curl_fetch_memory(url, handle = handle)
8. request_fetch.write_memory(req$output, req$url, handle)
7. request_fetch(req$output, req$url, handle)
6. request_perform(req, hu$handle$handle)
5. GET(, my_proxy)
4. eval(lhs, parent, parent)
3. eval(lhs, parent, parent)
2. GET(, my_proxy) %>% read_html()

Does anyone has any suggestions?

Thank you for your time and patience!
Let me know if you need more information.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.