Solved

403 Error on some PUT requests

Posted on 2014-03-30
4
707 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 108

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
E-commerce is quite a gambling world, and you should never entrust your business to a lucky chance. In order to outrun your competitors in a race to attract as many customers as possible, you need to have a well thought-out strategy under your belt.…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now