Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Perl, PHP, Python & Ruby Development
- :
- REST API - Salesforce returns 405 METHOD_NOT_ALLOW...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
REST API - Salesforce returns 405 METHOD_NOT _ALLOWED despite creating object
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-08-2012 01:21 PM
Hi all,
I posted this over on stackoverflow as well - http://stackoverflow.com/questions/12787366/salesf
I have a Wordpress plug-in that is using wp_remote_post to create standard Objects in Salesforce via the REST API using POST.
It's successively creating the objects based on the data I'm passing over but the response from Salesforce comes to me as a 405 METHOD_NOT_ALLOWED. Instead of a 201 Created (which has the Id of the object I just created).
If I try the same body content via the Salesforce Developer Workbench the response is 201 Created but when sent via my local server up to Salesforce, the response is a 405.
Is this a configuration with Salesforce?
Is there something I should look for locally? (running an nginx web server locally using php-fpm)
I do not get a similar response when I use GET. It comes back with a 200 status code and the results of the SOQL query.

