You need to sign in to do that
Don't have an account?
Apipoj Piasak
Apex cURL callout to store login value to cookie.
Hello there,
I an trying to implement the API cURL callout to post the login form and would like to store the credential into cookie. Sample are the script.
Best,
Apipoj
I an trying to implement the API cURL callout to post the login form and would like to store the credential into cookie. Sample are the script.
login_form <- c() login_form$email <- username login_form$password <- password curlHandler <- getCurlHandle(cookiefile = "cookies.jar", verbose = TRUE) postForm("https://test.com/login", .params = login_form, curl = curlHandler)I wonder of how to integrate this into Apex class / trigger ? Is there anyone having the experience on this?
Best,
Apipoj
We would like to store a cookie as a credential to use in another cURL post form. Would it be possible?
We would like to use Apex class/trigger to submit a HTML form. But this form need to log in first and it allow only Cookie for authentication.
Here are the detail of the requirments.
1. Submit login form with cURL
2. Store login credential into Cookie
3. Submit the target form with cURL
Is that something that SF could do about this?
Thanks,
Arty
[1] https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts.htm
[2] http://stackoverflow.com/questions/11670593/setting-cookie-from-webservice-call-out-in-salesforce