This is a discussion on post with curl - error 501 within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, Friend of my set up for me an apache server (Apache/2.2.0 (Fedora), php5, mod_rewrite, etc.. - http://...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
Friend of my set up for me an apache server (Apache/2.2.0 (Fedora), php5, mod_rewrite, etc.. - http://serwer2.profprojekt.com.pl/info.php). Everything works just fine, but i can't send HTTP_Request with data in POST using CURL. Server returns error: -------------------------------------------------------------------------------------- 501 Method Not Implemented Method Not Implemented POST to /app/webroot/cake_gateway.php not supported. -------------------------------------------------------------------------------------- When i'm sending requests with post using forms or ajax server manages it faultlessly... Anyone knows where should we looking for bug ? best wojtek |
|
|||
|
>
> In your code probably. > Davide > Code is ok, it's working great on my local server as well as on other servers. Problem occurring only on this one server - it's seems like the server doesn't handle with HTTP_Request with data in POST from it self. I hope i'm understandable ;) best wojtek |
|
|||
|
On Sep 23, 11:20 am, void <kolodziejczyk.woj...@gmail.com> wrote:
> > In your code probably. > > Davide > > Code is ok, it's working great on my local server as well as on other > servers. Problem occurring only on this one server - it's seems like > the server doesn't handle with HTTP_Request with data in POST from it > self. > > I hope i'm understandable ;) > > best > wojtek look for LIMIT directives on this server that your friend set up. Maybe he has set <LimitExcept GET> Order allow,deny Deny From All </LimitExcept> whereas you need <LimitExcept GET POST> Order allow,deny Deny From All </LimitExcept> it could be this, have yohu tried using a proxy server to see what headers your server returns. What about the confniguration of cake, has POST been banned in there for that directory. Perhaps everything is rewritten via a php script which does not allow POST and sends back the area you are seeing. |
|
|||
|
ok, i've solved the problem
it was about mod_security. Replacing row with SecRule REQUEST_HEADERS:Content-Type "!(?:^(?:application/x-www-form- urlencoded$|multipart/form-data;)|text/xml)" to SecRule REQUEST_HEADERS:Content-Type "!(?:^(?:application/x-www-form- urlencoded$|multipart/form-data;)|text/xml|application/x-amf)" makes it works perfectly. thanks for your time best wojtek |
|
|||
|
On Sep 23, 3:13 pm, Davide Bianchi <davideyeahs...@onlyforfun.net>
wrote: > On 2007-09-23, shimmyshack <matt.fa...@gmail.com> wrote: > > > look for LIMIT directives on this server that your friend set up. > > The fact is, that he said in is first post that if he uses > something else and not curl it works fine, so that make me think > that the server config is ok, is something in the way the request > is made that is wrong. Unless when he said > "it works when I use forms or ajak" he meant something else... > > Davide > > -- > The difference between math and physics is the difference between > masturbation and sex. They're both messy, but physics can get you in > much more trouble. -- Paul Tomblin & Malcom Ray yeah sorry Davide, I didn't spot that. As you said it turned out to be his code the whole time which he solved by ammending his mod security rule for some reason. |
| Thread Tools | |
| Display Modes | |
|
|