Questions tagged [httprequest]
httprequest is the request sent by browser to server for particular resource.
110 questions with no upvoted or accepted answers
5
votes
0
answers
1k
views
Amazon SES Sending email with attachments
I am trying to send emails for salesforce with attachments
HttpRequest httpReq = new HttpRequest();
httpReq.setMethod('POST');
httpReq.setEndpoint('https://email.us-east-1.amazonaws.com');...
4
votes
0
answers
619
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 ...
4
votes
0
answers
8k
views
CalloutException: Read timed out error after increasing timeout
I have simple code to send a get request to our webservice that returns a small json response:
System.HttpRequest request = new System.HttpRequest();
request.setMethod('GET');
request....
3
votes
0
answers
2k
views
Executing multiple callouts from a future method
I have a problem when I try to execute multiple callout from a method of an Apex Class.
The method code is the following:
@future(callout=true)
public static HttpResponse makeCallout(){
List<...
3
votes
0
answers
262
views
requests to https://test.salesforce.com/ are failing on ios 9
With iOS 9's improved security we are not able to connect to https://test.salesforce.com
We get
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)
which based on ...
2
votes
0
answers
505
views
Sending 100KB attachment via HTTPRequest throws System.UnexpectedException
I'm trying to upload an attachment from SF to a third party server using REST API,
First, my third party does not support base64 content-transfer so I cannot send from SF a base64 attachment.
...
2
votes
0
answers
659
views
Whitelisting Marketing Cloud for SSJS and custom Journey Builder activities
I'm trying to get Mulesoft open for data coming from the following sources in Marketing Cloud:
custom Journey Builder activities
server-side JavaScript (HTTP requests)
Ampscript (HTTP requests)
...
2
votes
1
answer
920
views
Uploading CA-Signed CRT to Salesforce?
I have an existing CA-Signed Certificate (CRT) given to me by my client, and it is needed to be able to make callouts to their external system. I have not found a way to be able to upload a CRT to ...
2
votes
0
answers
2k
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: ...
2
votes
0
answers
89
views
Sending an HTTP request with an imported WSDL with the string 'http://0X'
I have a WSDL that i consume imported as an Apex class. One of the methods receives one String param that is the account website, and one of our users inserted a website that starts with 'http://06'. ...
2
votes
0
answers
225
views
Provide from apex code to external service session id, which does not invalidate on logout
In our application when user clicks at specific button on the page http callout to external service is triggered from apex code on the server side. As one of the parameters we are passing session id ...
2
votes
0
answers
390
views
Connect to Microsoft Dynamics GP from apex
I would like to connect to Microsoft Dynamics GP from Salesforce using NTLM Authentication. I used this library to Authenticate the service (https://github.com/natewallace/ApexNTLM), I prepare a ...
2
votes
0
answers
755
views
HTTP post request is not leaving salesforce servers
In sandbox environment, immediately after the callout request I get a callout response "System.HttpResponse[Status=Forbidden, StatusCode=403]" even though I have already configured the domain in the ...
2
votes
0
answers
623
views
Parsing JSON when property value can be a scalar string or an array of objects
I'm working on an integration to go spot check, and one of the problems I've run into is that the data type for one of the json properties can be different depending on the question type.
Here is ...
2
votes
0
answers
205
views
pdf not downloading properly
I have these lines of code:
public String getCoverPdf()
{
if(!String.isBlank(pdfLink))
{
Http h = new Http();
HttpRequest req = new HttpRequest();
...
2
votes
0
answers
87
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
0
answers
2k
views
Calling a web service from a Visualforce page using jQuery Ajax
I want to call a web service using REST API from the Visualforce page. Below is my code.
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js">&...
2
votes
0
answers
180
views
Identifying Post back or not
Is there a standard way to identify a post back in apex?(something like IsPostBack in asp.net? )
For a oauth flow I'm handling this with the controller constructor like
public class DeveloperTesting{...
2
votes
1
answer
206
views
Error while creating a pushtopic from java
I am trying to create a push topic in java by following this link . Since there were changes in the eclipse httpclient library (I am using version 9.2.5) I had to make corresponding changes and the ...
2
votes
0
answers
2k
views
Http callout not giving correct response when calling fom visualforce page
I am stuck in to one strange problem. I am sending http request as below. The below request giving me perfect result when i m calling it from developer console, but for some reasons it is not working ...
1
vote
0
answers
84
views
Visualforce Blobs variables in apex code
I'm here to tell you about a problem I'm having and what I think should work is not working for me.
The main problem is that I am integrating Salesforce with a new document manager. The administrators ...
1
vote
0
answers
766
views
System.CalloutException: PKIX path building failed: unable to find valid certification path to requested target
Sorry for the unexpected appearance, I saw your profile on the forum dealing with the error:
System.CalloutException: PKIX path building failed: sun.security.provider.certpath....
1
vote
0
answers
455
views
Unable to access array within an array from Salesforce flow http callout (beta)
In sandbox, I am attempting to gather the information from https://data.nasdaq.com/api/v3/datasets/USTREASURY/YIELD.json
I used the beta feature of creating an HTTP callout right from the flow. It ...
1
vote
0
answers
141
views
SSJS: Unable to retrieve security descriptor for this frame error
I'm trying to create a script to store values from a form on a cloud page in the SFMC database using the SSJS HTTP Post method, but I'm receiving the following error:
Exception occurred: Unable to ...
1
vote
0
answers
133
views
Can I config number of action in boxcar request?
I created a community site.
In the site I have a form with a lot of item dynamic (item stored in database: type (input, radio, checkbox,...), label, max length,...)
When I submit form, cause of number ...
1
vote
0
answers
415
views
Attempting to get an http request with user input from LWC input field
I am trying to allow our Salesforce Users to paste a unique number into an input field on an LWC, then let an Apex Class process a named Credential HTTP request - currently getting an error and not ...
1
vote
1
answer
1k
views
SSJS Error on HTTP.Post
I'm facing an issue on sending an HTTP post request from Marketing cloud to ElasticSearch using SSJS.
The aim is to send some import statistics of flat files to ElasticSearch in order to retrieve it ...
1
vote
0
answers
230
views
CORS problem in Lightning
My Lightning component makes 'GET' callouts for two different URLs of the same service.
For one it goes correct each time: https://cors-anywhere.herokuapp.com/https://integration.visma.net/API/...
1
vote
0
answers
2k
views
INVALID_TYPE ERROR while querying using REST API
I'm trying to run a query using REST API (RestSharp).
This is my query:
[SELECT Id FROM Account]
This is my code:
RestClient m_Client = new RestClient("https://my_instance.salesforce.com");
string ...
1
vote
0
answers
122
views
How to download standard Salesforce attachment in javascript using XHR
We have a VF page. From that page, we are trying to download standard Salesforce attachment using XMLHttpRequest in javascript. We are doing GET request with attachment download URL as the endpoint. ...
1
vote
1
answer
3k
views
ERROR_HTTP_414 - <h1>Bad Message 414</h1><pre>reason: URI Too Long</pre> on VS Code
I am trying to push the code to my scratch org through VS Code using following command - sfdx force:source:push --json --loglevel fatal
But getting following error on VS Code.
ERROR_HTTP_414" - "...
1
vote
0
answers
85
views
'uncommitted work pending' callout exception thrown in *tests only*
I am converting a lead in the Execute method of a batch class, then making 2 callouts with those results in the Finish() method. It works gloriously and throws no errors.
However, in the test ...
1
vote
0
answers
59
views
HTTP CalloutException in Summer '19 sandboxes
Yesterday I started experiencing intermittent but frequent errors with HTTP callouts using Named Credentials in Apex in multiple sandboxes (all Summer '19 preview instances).
These same callouts had ...
1
vote
0
answers
286
views
How to configure HTTP request headers for a Canvas app
I’m trying to create a Canvas app where the URL is served by a CDN. Salesforce is setting 'cache-control: no-cache' in the request header and this is causing the request to fail with status 403 along ...
1
vote
0
answers
2k
views
How to Log Complete HTTP Request
I am trying to capture an HTTP request in it's entirety as it is sent from salesforce.
After adding headers my request I have attempted to use JSON.serialize and String.valueOf, where as JSON....
1
vote
0
answers
2k
views
HttpRequest gives 500 error
I have an APEX class with code to request a token from https://login.salesforce.com/services/oauth2/token. This code works on Development and Acceptance, but is not working on Production.
This is de ...
1
vote
0
answers
8k
views
Anyone familiar with 'no protocol' CalloutException message, and addressing it?
I'm working a process involving third-party webservices, and have made it past the initial authorization hurdle but am running into a new problem. Regardless of whether the content-type is specified, ...
1
vote
0
answers
212
views
How to prevent VF Remoting from failing when there's no Referer header in the request?
I'm working on a ReactJS app served through a VisualForce page.
If the initial request to the page containing the app doesn't include an HTTP Referer header, none of the requests sent to the page's ...
1
vote
0
answers
130
views
organisation inconsistencies - You have uncommitted work pending. Please commit or rollback before calling out
I have a fairly complex class dealing with http callouts. I have taken great care to avoid performing any dml operations before after all callout operations are complete. All of my callout operations ...
1
vote
0
answers
2k
views
HTTP POST Callout Certification Error
I'm getting the following error when trying to send data to a remote site.
06:39:14.11 (12427104)|CALLOUT_REQUEST|[16]|System.HttpRequest[Endpoint=https://endpoint.url/, Method=POST]
06:39:14.11 (...
1
vote
0
answers
1k
views
SSL Certificate to connect Salesforce to SAP B1IF and SAP Service Layer
I would like your help to understand a little bit how HTTPS and SSL certificates works. I have a Salesforce org that needs to connect to SAP Business One Integration Framework (SAP B1IF that runw on ...
1
vote
0
answers
252
views
How to Make Https Request From Salesforce to Flipkart
Hi guys I'm trying to generate access token for Flipkart Application from Salesforce.
When I run this below command in curl I'm able to get Access Token
curl -u 52a83780666645a39a6b57103657866a9069:...
1
vote
0
answers
258
views
How to redirect after HttpRequest POST?
In a Visualforce controller, if I need to do an HTTP POST and redirect to that same URL, how do I do it?
Here's the situation: currently the client has a plain HTML form (standard HTML form and input ...
1
vote
1
answer
209
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
0
answers
440
views
Well formed Http Request
I'm trying to make a callout to AWS S3 Put Object - Copy from APEX code, the request must be something like:
PUT /destinationObject HTTP/1.1
Host: destinationBucket.s3.amazonaws.com
x-amz-copy-source:...
1
vote
0
answers
109
views
OnInstall package using HttpRequest or Callout creates System.CalloutExceptio
I've tried alot of solutions for this issue but when I install the package then I received an email with exception info as below:
System.CalloutException: You have uncommitted work pending. Please
...
1
vote
0
answers
601
views
Getting 400 Bad request on sending request to iam.amazonaws.com
I trying to create user from Apex in AWS/IAM. For that I have created URL according to description given aws in its documentation and I am doing this with get method. But issue I am facing is that,my ...
1
vote
0
answers
85
views
Incoming SMS HTTP Post Back
Is there a way to configure MobileConect to fire HTTP Post back events to partner API when incoming SMS is received on a particular long number instead of having to poll for deliveries?
0
votes
0
answers
28
views
Editing Managed Package new Named Credential (not legacy) URL in subscriber org
I'm looking to add a new Named Credential (not legacy) to my managed package. There's a similar question here, but that's in relation to legacy named credentials.
Looking at the documentation, it ...
0
votes
0
answers
46
views
How to set the values for Permissions-Policy for custom Force.com site
How to set the values or enable Permissions-Policy for custom Force.com site ?
We have one custom page build on force.com platform, upon doing the penetration testing we are getting below result
...