Anitha N Posted September 12, 2008 Share Posted September 12, 2008 Hi, I am newbie in using Apache HTTP server 2.0 I have installed Apache server 2.0.63 in Windows 2000. Any POST or PUT request to this server is failing. I googled for a solution, however I couldnt find one. Anyone pls help me out. thanks anitha Quote Link to comment https://forums.phpfreaks.com/topic/123927-reg-post-request/ Share on other sites More sharing options...
rhodesa Posted September 12, 2008 Share Posted September 12, 2008 Can you elaborate more on the error? Also, how are you testing the POST/PUT requests? Quote Link to comment https://forums.phpfreaks.com/topic/123927-reg-post-request/#findComment-639738 Share on other sites More sharing options...
corbin Posted September 12, 2008 Share Posted September 12, 2008 Could be htaccess or something denying it. Quote Link to comment https://forums.phpfreaks.com/topic/123927-reg-post-request/#findComment-640188 Share on other sites More sharing options...
Anitha N Posted September 14, 2008 Author Share Posted September 14, 2008 i have a simple client program in C, using which am trying to POST some content in the apache server. i dont know how to use htaccess Quote Link to comment https://forums.phpfreaks.com/topic/123927-reg-post-request/#findComment-640968 Share on other sites More sharing options...
Anitha N Posted September 14, 2008 Author Share Posted September 14, 2008 do I need to write a script(which acts as a server application) to serve the POST request??? or any specific Apache module need to be downloaded for supporting POST request... my aim is to copy a file to a server location. PUT could be used..but thts also failing... help me out... thnx Quote Link to comment https://forums.phpfreaks.com/topic/123927-reg-post-request/#findComment-640970 Share on other sites More sharing options...
rhodesa Posted September 14, 2008 Share Posted September 14, 2008 yes, there needs to be something on the apache server to 'receive' the post/put request. Like a PHP script. Here is some info on how to receive PUT requests with PHP: http://us2.php.net/manual/en/features.file-upload.put-method.php Quote Link to comment https://forums.phpfreaks.com/topic/123927-reg-post-request/#findComment-641187 Share on other sites More sharing options...
corbin Posted September 14, 2008 Share Posted September 14, 2008 It sounds to me like your Apache config is denying POST/PUT requests. Look for POST or PUT in your httpd.conf or any .htaccess files. Quote Link to comment https://forums.phpfreaks.com/topic/123927-reg-post-request/#findComment-641188 Share on other sites More sharing options...
Anitha N Posted September 24, 2008 Author Share Posted September 24, 2008 Hi, I used Perl script to process the POST request from the client. This script will just read the request body and returns successful response. Thanks for your help. -- Anitha Quote Link to comment https://forums.phpfreaks.com/topic/123927-reg-post-request/#findComment-649269 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.