?
Solved

403 Error on some PUT requests

Posted on 2014-03-30
4
Medium Priority
?
789 Views
Last Modified: 2016-03-02
Hello Experts

I would be grateful for any advice.

We are trying to integrate an EPOS shopping till system to a Magento website run on 1and1 dedicated/managed webserver.
GET requests are ok but it seems PUT requests are blocked with a 403 error.

The EPOS developer has looked at the apache error logs and thinks this is the problem.

•      [Thu Mar 27 19:03:10 2014] [client XX.194.28.194] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5.4/extensions/no-debug-non-zts-20100525/mcrypt.so' - /usr/lib/php5.4/extensions/no-debug-non-zts-20100525/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0

The hosts suggested trying to comment out this line in php.ini

Line 34 ;extension=mcrypt.so

Now error seems to be below which relates to the
PHP Deprecated:  Comments starting with '#' are deprecated in /homepages/26/d10541XXXX/htdocs/XXXXXXX/php.ini on line 34 in Unknown on line 0

The url the EPOS server is posting to looks like  https://www.EXAMPLE.co.uk/api/rest/eposnow/categories/update,

But we still get this error

•      The remote server returned an error: (403) Forbidden. - {"messages":{"error":[{"code":403,"message":"Access denied"}]}}

1and1 Hosts say there are no restrictions on GET or PUT done on the localhost.  We have this in the .htaccess

<IfModule mod_security.c>
###########################################
# disable POST processing to not break multiple image upload

    SecFilterEngine Off
    SecFilterScanPOST Off
</IfModule>

So nobody seems to know what is blocking the PUT requests.

I am stuck between the EPOS developer, 1and1 hosts and my developer.  I am not a developer just site owner.   Any advice would be gratefully received please.
0
Comment
Question by:Zoo71
  • 3
4 Comments
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 39965068
Are you sure it's a PUT request and not a POST request?  I'm just asking because PUT requests are relatively rare, whereas GET and POST requests are quite common, and POST requests are often used when PUT would be OK, too.
0
 

Author Comment

by:Zoo71
ID: 39965073
Thank you for interest.
I will enquire with EPOS developer if they mean PUT or POST and will post it here.
0
 

Accepted Solution

by:
Zoo71 earned 0 total points
ID: 39979222
This was a managed server issue.  In the end we had to move to an unmanaged root server to make the changes eg Oauth and various security settings
0
 

Author Closing Comment

by:Zoo71
ID: 39988236
When all else failed all we could do was move servers - its worked, to an extent.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question