Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I keep getting 405 errors when i try to send post ajax requests on localhost from a page to another.I understood this is a server configuration.Can anyone help ?

share|improve this question
    
This should probably be moved to ServerFault –  SpamapS Nov 22 '11 at 19:55
add comment

1 Answer

You need a script handler of some kind (python, php, etc.) to handle POST's. The point of a POST is that you are sending data back to the server, without the script handler, apache doesn't know how to do anything with that data.

share|improve this answer
    
i have php. i get the error when sending the data via jQuery –  andrei Nov 22 '11 at 20:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.