function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Yury.KYury.K 

Download attachment through HTTPS site.

Hello everyone,
Currently I'm trying to download attachment from salesforce.com through salesforce site. Everything works perfectly with HTTP, but when I'm trying to download from HTTPS it doesn't work. 

 

Algorithm that I'm using for downloading looks like this:

1. I created remote access for my HTTPS site at salesforce.com.

2. Got access token for HTTPS callout by username/password/consumer key/consumer secret.

3. Made callout with header name "Authorization" and header value is "OAuth 00DU0000000Ib6Z!AQ0AQJuSJZpBhtfXy_zO.PP7f3Hh.EQVwCqec2uQgbXOqx1V1U...."

 

But download doesn't work. Am I doing something wrong?

 

Thanks,

Yury.