ajax and 403 error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sdja
    New Member
    • Aug 2007
    • 6

    ajax and 403 error

    I have a php script(writes some data in to a file) and using the get method in a xmlhttprequesto bject to send data to the script

    XMLHttpRequestO bject.open("GET ", "updatewriter.p hp?qu="+POSTDat a);

    When I run the script in the local host, the script is working fine. but when i try it out in a remote client, the server status is 403

    Also if i directly run the script(not via the ajax request)in the remote machine, the script is working fine

    The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

    Using apache server.

    Not sure what I'm doing wrong. Your help is greatly appreciated.
    Regards,
    sindu
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    You have "POSTdata" as the parameter. Should it not be a POST request?

    Comment

    Working...