- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- 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
10-08-2012 01:21 PM
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.