[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

403 Error on some PUT requests

Posted on 2014-03-30
4
Medium Priority
?
768 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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 i…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

650 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