Questions tagged [http]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11
votes
3answers
3k views

How to use HTTPGet variable in URL (ExactTarget)?

Been trying to figure out a way to pass in the variable into a HTTPGet function for long time now. How to do it? Here's what I have so far, but it doesn't return anything. <p id="date" style="...
1
vote
1answer
3k views

while calling Apex REST class, getting response “Could not find a match for URL /CallREST1”,“errorCode”:“NOT_FOUND”}]"

here is my APEX REST class code @RestResource(urlMapping='/CallREST1') global with sharing class CallREST { @HttpPost global static String createNewCase(String companyName) { ...
4
votes
1answer
1k views

Calling custom apex as REST with XML results

So you want to call your Apex classes from outside salesforce via RESTful HTTP and need XML resurned even though it's uncool. The official documentation suggests it's supported by simply adding the ...
5
votes
1answer
3k views

Is it possible to read cookie while doing a HTTP Get to external website?

Well was wondering if this is possible at all ? The aim is to get a cookie from an external website. But while going through the HTTP class for both Request and Response I don't think there is a ...
8
votes
2answers
3k views

Sending a blob from Salesforce in a HTTP request?

Documentation says we can't do this. So as the title says, is there a workaround to make this possible?
0
votes
2answers
3k views

Test Class for Batch Apex with Webservice Callout?

I have this batch class that's been nothing but trouble from the start. After several hurdles I finally got it working. My problem now is I have NO IDEA how to test it. After some brute force I can ...
3
votes
1answer
373 views

calling a salesforce HTTP method from iOS

How can I call a method in Salesforce from iOS? I am wanting to call submitToIntegration(application__c app) : public without sharing class blogic_Application { public static boolean ...
12
votes
1answer
1k views

Managed package callout invoked from managed package extension causing test class failure

We have a managed package that has executes a HTTP callout from a trigger that calls a future method on the insertion of new records on a particular object. We have a managed package extension that ...
3
votes
1answer
3k views

Displaying web service response as HTML on VF page

I need to get html code from a web service and display it in a VF page. I've tried the following, but it's showing the response as text, not as html. VF <apex:page showHeader="false" sidebar="...
1
vote
1answer
644 views

Test methods for schedular which call the method of external end point

I am new to apex and have some questions. Below are my conditions. I have class A_Class in which it calls the external end point in some methods. To test this class, I have already written HTTP ...
3
votes
1answer
410 views

How to get google adwords reports in salesforce?

Hi I am developing application in salesforce for accessing the google adwords reports data for e.g. ADGROUP_PERFORMANCE_REPORT. I am sending http post request to https://adwords.google.com/api/adwords/...
3
votes
1answer
2k views

http post for mulitpart form

am trying to post the csv data through http post to end point url. Below is my code. string test = 'test1,test1@gmail.com'; // which will be get from DB and make as CSV string String ...
17
votes
1answer
8k views

HttpCalloutMock Interface where there is more than 1 callout

Here is some background- I have an apex future method which is being called from an trigger. The future method then performs 3 different http calls to an external system (same endpoints). All requests ...
15
votes
2answers
13k views

PATCH request using Apex HttpRequest

I'm looking for a way to create an HttpRequest in Apex using a POST method. When I do it, I hit this error: { "message": "HTTP Method 'POST' not allowed. Allowed are HEAD,GET,PATCH,DELETE", "...
3
votes
1answer
2k views

Trapping “Maximum size of callout request or response” exception

Salesforce limits: "Maximum size of callout request or response: 3MB", is there a way to "trap this exception", to gracefully handle responses that end up being over 3mb? I'm hitting these limits and ...