+ Start a Discussion
Andrew Hansen 12Andrew Hansen 12 

Unauthenticated REST call - HTTP 301 response

I followed this tutorial, http://www.wadewegner.com/2013/03/creating-anonymous-rest-apis-with-salesforce-com/ , to create a public rest service in a developer sandbox. If I run any of the following:

curl GET http://sitedomainname.cs1.force.com/services/apexrest/Widgets/
curl POST http://sitedomainname.cs1.force.com/services/apexrest/Widgets/
curl PUT http://sitedomainname.cs1.force.com/services/apexrest/Widgets/
curl DELETE http://sitedomainname.cs1.force.com/services/apexrest/Widgets/

I get an HTTP 301 response.

But strangely, if I run that URL through POSTMAN, any request calls my GET method. And if I run it through SOAP UI, it calls my POST and GET methods correctly.

Finally, if I call the same url, but HTTPS, I get a HTTP 503 error.

Here is my class:
 
@RestResource(urlMapping='/Widgets/*')
global class WidgetController {

    @HttpGet
    global static String getWidgets() {
        return 'GET';
    }

    @HttpPost 
    global static String createNewWidget() {
        return 'POST';
    }

    @HttpDelete
    global static String deleteWidgetById() {
        return 'DELETE';
    }

    @HttpPut
    global static String updateWidget() {
        return 'PUT';
    }
}



I should also add that all of these methods work correctly when authenticated through workbench
Jones DanielJones Daniel

Why Should You Buy Fake Documents Online?

If you are wondering if you should buy fake documents from online websites then you need not think twice about getting one for yourself. Some of the most valid reasons on why should you buy are mentioned below. Most of the documents such as fake diploma certificate, licenses, passports and scannable fake IDs are available for sale in many websites online.

The certificates which you will be buying look exactly same as that of the original ones

When you buy real passport online or get drivers license online then you should absolutely not mention about that to anybody, even to your close ones, since it might get you into some serious trouble. After placing an order on the website, you can expect a fast and reliable delivery from them and also the quality of these fake documents is so great that no one can ever make out the difference between the original and the fake ones so easily. And on the other hand, since no one would be able to make out the difference between the fake documents and the original ones you can use them easily anywhere. It too saves a lot of time which in turn would have been wasted into making the original ones and the time needed to make the procedure successful.

The fake documents are quite affordable for anyone to buy

Buy scannable fake ID or get drivers license online at quite affordable rates. It would in turn cost you much less than the original ones. Whenever you buy real passport online then it would be made sure by the seller that the quality of the product is of top class and that it also comes within an affordable pricing for your pocket.

The fake documents you need to be delivered can be done so in no time

Whenever you opt in to the services of getting yourself a fake diploma certificate or you want to buy fake scannable fake ID then the same would be delivered to your home within no time. all you have to do is provide you public details which would be needed in order to make the fake document of your choice and rest of the processes would be handled by the website.

On the other hand, if you go for making original documents for yourself the processes might be too tough and lengthy and therefore it takes a lot of time.

When you buy the fake documents online, then not only it saves a lot of your valuable time but you can also save up enough time for your own personal matters.

The fake documents are easily available online

All you have to do is search on the internet as fake documents online and you would be provided with the top sellers who have good reviews and a great customer support system for you to avail the fake document of your choice. Just choose the document which you need to have with yourself and the same would be processed by the seller accordingly, that too within no time. The certificates and documents would be delivered to you at your own home within no time.

For more details you can visit our website: http://buyalldocuments.com/ OR Whatsapp: +1 310 929 0548


Buy Fake Passport
buy fake documents online
Buy Real Passport
Fake Passport For Sale
get fake visa online
Buy passport Online
buy fake visa passport
get drivers license online
Buy fake driving license online
buy scannable fake id
fake id card maker
buy fake certificates
fake birth certificate online
Buy fake death certificate
Buy fake degree certificate
Buy Real Certificates
fake diploma certificate
real drivers license for sale
buy IELTS certificate without exam

Ramesh DepaiahRamesh Depaiah
Hi Andrew,
It is most likely that you endpoint does not allow access from outside some ip range which you indicated by saying it's not public.
Please see below article
https://help.salesforce.com/articleView?id=000003652&type=1

You need to whitelist your IP to validate that the call originated from your Salesforce org.

Thanks
Ramesh

*Please mark this as best answer(if it's helpful), so it can be helpful for others as well*