You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that pageSettings does not work for setting arbitrary headers (at least not with the incantations I tried), and passing the headers to .open() does not send the headers with follow-on requests. As a result, the preferred (and workable) approach was to add the following to webshot.js before casper.start():
This is also anecdotally related to #49 , because I am using headers for authentication to RStudio Connect (in lieu of clicking through auth and then saving a cookie).
The text was updated successfully, but these errors were encountered:
Related to #77 , it would be nice to be able to set arbitrary headers (i.e. not just
userAgent
). Unfortunately, perIt seems that
pageSettings
does not work for setting arbitrary headers (at least not with the incantations I tried), and passing the headers to.open()
does not send the headers with follow-on requests. As a result, the preferred (and workable) approach was to add the following towebshot.js
beforecasper.start()
:This is also anecdotally related to #49 , because I am using headers for authentication to RStudio Connect (in lieu of clicking through auth and then saving a cookie).
The text was updated successfully, but these errors were encountered: