Questions tagged [http]

The tag has no usage guidance.

29 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
275 views

OWASP Zap Report for scan Http request

Hi Friends , anyone heard about OWASP Zap Report ?? Scan request and response. i want create repohttps://eti-massemail.na24.visual.force.com/apex/MassEmail rt for one app of Salesforce. i face an ...
2
votes
0answers
61 views

Fetch Data of Different Organization?

I have 2 Orgs- Org A & Org B both are ap1 Instance In Org A I've created a Connected app In Org B I am trying to Query accounts of Org A From the Connected App Through Http Call, but I am ...
2
votes
2answers
200 views

Loading HTTP resource in Visualforce pages

Is there a way to allow loading of non secure resources from external sites in Visualforce pages? Below is the scenario I have. I am creating a force.com site page. The template I received for the ...
1
vote
0answers
33 views

setting a large http body

I am trying to send a http request with a large string Body; however, salesforce complaints about the size of the string, the error as follows: caused by: System.StringException: String length ...
1
vote
0answers
31 views

Rest API callout using basic authorisation

String filter = 'OrderNumber eq \'1000035\' and SoldtoCustomer eq \'10045005\''; String Username = user; String Password = pass; String expand = 'EvLineDetailsSet'; String format ='...
1
vote
0answers
31 views

Failed to get success response in “application/json” using Name Credential

HttpResponse in “text/html” instead in “application/json” if using Name Credential Step1 : Name Credential Step 2: Authentication & Authorization Code RESPONSE header>>>>>: ...
1
vote
0answers
14 views

HTTPS url for Community isn't redirecting

We are about to launch our Salesforce Community. We created a custom domain and URL using this option for our domain: "Salesforce serves the domain over HTTPS, on Salesforce's servers, using your ...
1
vote
0answers
146 views

HTTP GET failing

I have an activity script running a SSJS HTTP GET request. I need to get the output of this request to feed a data extension. I am using this code: var de= DataExtension.Init("dataextension_ek"); ...
1
vote
0answers
45 views

StripeForce addLineItem is not working

I have a task using the StripeForce Stripe Client. I've been trying to do the following. Once an invoice is created on stripe, to use the webhook invoice.created and then add a line item to the ...
1
vote
0answers
150 views

PHP Toolkit to SF API, Why am I getting a 402 error with “Unable to determine from which page the request originated”?

I am attempting to build a set of tools in PHP designed to "smoke text" various data transmissions to and from our Salesforce org, using PHP Toolkit 20.0. Here is my PHP: require_once('soapclient/...
1
vote
1answer
249 views

Use an http right frame instead of https on Login page

I wish to use an http right frame instead of https for my login page. However, it shows me, unable to do so as the website is http. Is there a way to add our right frame on the login page?
1
vote
0answers
68 views

Asychronous call to wordpress using HTTP callout failing due to timeout

Timeout error with Asychronous HTTP callout to wordpress site I am trying to make an asynchronous call to a wordpress site using HTTP callout method( using @Future). Everything works on sandbox and I ...
1
vote
1answer
117 views

Pull specific content from HTTPGET request

Is there a way to only grab specific content from an HTTPGET request? For example, if the content I need for the email is contained within the <div id="the_content"> tag. <html> <...
1
vote
0answers
386 views

apex soap 1.2 call out

I am trying to do http callout with soap 1.2 request but facing following error..? Error - System.UnexpectedException: java.lang.IllegalArgumentException: invalid start or end. request:- ...
1
vote
1answer
38 views

What are the configurations in Salesforce for client to access the Rest Service with http instead of https

I have a Rest service(POST) that I expose publicly through sites. What are the configurations required in Salesforce for client to access the Rest Service with http instead of https.
1
vote
1answer
38 views

on Post -System.CalloutException on one object but not on another

I'm building an application which sends a post request to an endpoint when a particular record is inserted. The trigger looks like this(for testing purposes): trigger NotifyPlayersOfShowCancelation ...
0
votes
1answer
38 views

not able to access the variable values after using the continuation class

private class StateInfo { Account acc {get; set;} StateInfo(Account acc){ this.acc = acc; } Contact cont {get; set;} StateInfo(Account acc, ...
0
votes
0answers
55 views

Quickbooks API PDF upload error: Maximum line length limit exceeded

I'm trying to upload pdf file from Salesforce to Quickbooks attachments via Quickbooks API. It works fine with small files, but if file size exceeds 999 bytes, the following error appears: An ...
0
votes
1answer
51 views

POST to an external API from visualforce page

I am using OpenCTI in Lightning to enable click to dial. I want to click on the phone number and call an external API to make the dial. I have a visualforce page as CTI Adapter. When the page loads ...
0
votes
1answer
71 views

Saleaforce IOT: ESP8266 IoT device facing 302 Http redirect instead of 201 when calling REST API because of insecure HTTPS call

ESP8266 has been able to get OAuth token by Device Flow OAuth2.0 After getting OAuth token, I was hitting the REST API endpoint /services/data/v45.0/sobjects/Account with a JSON body in the request: ...
0
votes
0answers
164 views

Can APEX Capture Cookies in Callout HttpResponse?

I'm trying to post data from my org to a third party using a REST API they've provided for us. The process for this is: POST client_credentials (client_id and client_secret) to obtain access_token ...
0
votes
0answers
353 views

“Connection reset” exception when sending a callout (HTTP.send())

We have been receiving this intermittent exception when trying to make a callout for a few months now ("Connection reset" is the exception message): Connection reset Class.Sip_HttpUtil.callout: ...
0
votes
1answer
945 views

External image not displaying in community

My problem is that I cannot view an image loaded from an external site into an img tag in my lightning component. The URL is with 'http' protocol not 'https', but when I see the Chrome Console, it ...
0
votes
0answers
626 views

Callout in test method not returning mock response

I am trying to write a test class for testing an HTTP callout. Test class compiles without errors. However, I am not getting the mock response inside. Below is the relevant parts of my code. ...
0
votes
0answers
231 views

Test class code coverage for catch block in httprest api

below is my class code. code is not getting covered for the catch block. current code coverage is 75%. Also given below is my test class code. In need at least 90%. public class ...
0
votes
1answer
166 views

End Point URL Error in HTTP Class?

I have a 3rd Party Endpoint Url Which I Paste in browser Address bar I can see the XML Data. But the same Endpoint URL , I invoke via Apex Class (Http Call) I will get a Error Message From the System ...
0
votes
1answer
251 views

Apex Batch Reduce Callout Process Time

From batch class we are able to connect to third party API 5times per second on an average, i am wondering is there any way to increase the callouts per second. I am sure there may be chances
0
votes
1answer
103 views

goto 3rd party link using SSO from Salesforce using HTTP Post

Can anyone help me with redirecting user to 3rd party server using SSO from SALESFORCE using Apex class using HTTP Post. Any links will also help.. Thanks
-1
votes
1answer
463 views

Error while uploading File to S3 from Apex

I am using the below code to upload file to Amazon S3 from Apex class. public void uploadToAmazonS3 () { String filename = this.record.File_Name__c; String attachmentBody = EncodingUtil....