Solved

403 Error on some PUT requests

Posted on 2014-03-30
4
686 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
When all else failed all we could do was move servers - its worked, to an extent.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

10 Experts available now in Live!

Get 1:1 Help Now