You need to sign in to do that
Don't have an account?
coling
Retrieving a VisualForce page from an external script
Hi,
I would like to be able to rerieve a VisualForce page with an http(s) request from within a script running on my server (not having been invoked within a Salesforce session). This, however, requires that the script is 'logged in' - ie. this is not the same as logging in through the web services API. How would this be done? What login sequence, cookies, etc. are needed by the script to enable this?
Colin Goldberg
I would like to be able to rerieve a VisualForce page with an http(s) request from within a script running on my server (not having been invoked within a Salesforce session). This, however, requires that the script is 'logged in' - ie. this is not the same as logging in through the web services API. How would this be done? What login sequence, cookies, etc. are needed by the script to enable this?
Colin Goldberg
Then your class is made into a webservice, which when called will return the string content of the page.
Now your script can simply use the Apex Webservice API to login() and query that webservice class, unpacking the desired contents of the VF page.
This avoids the considerable effort of simulating a browser in script.
Thanks for this - it sounds like the best way to go.
Colin Goldberg