Not explicit URL

Not explicit URL

jolio007jolio007 Posts: 5Questions: 2Answers: 0

I'm using the server side. I kept the default GET type
"ajax":{ "url" : "http://127.0.0.1:8000/api/allusers", "dataSrc": "data", },
So far it has worked relatively well to display and the paging. I want to do some ordering and filtering, however I'm getting parameters in my URL that I can't "get' example, for the draw in the URL is draw=1. so I can retrieve it.
The column are in this format columns%5B0%5D%5Bdata%5D. Which is a bit harder to programmatically retrieve the information wanted.
I looked around and I found that to have cleaner URL, I needed to use type=POST. When I do, I'm getting only http://127.0.0.1:8000/api/allusers from which I can't get any informations

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,117Questions: 26Answers: 4,916
    Answer ✓

    When using POST the data is sent in the Header not the URL. You will likely need to use a different method to retrieve the parameters in your server script. A google search will probably provide the answer you need for the language/framework you are using for your server.

    Kevin

This discussion has been closed.