“Object Moved” error in using the RCurl getURL function in order to access an ASP Webpage

前端 未结 1 790
无人及你
无人及你 2021-02-03 15:15

I am trying to use the getURL function of RCurl Package in order to access an ASP Webpage as:

my_url <- \"h         


        
相关标签:
1条回答
  • 2021-02-03 16:04

    Use the followlocation curl option:

    getURL(u,.opts=curlOptions(followlocation=TRUE))
    

    with added cookiefile goodness - its supposed to be a file that doesnt exist, but I'm not sure how you can be sure of that:

    w=getURL(u,.opts=curlOptions(followlocation=TRUE,cookiefile="nosuchfile"))
    
    0 讨论(0)
提交回复
热议问题