Problem with Ajax URL

Asked

Viewed 80 times

0

every time I try to call my controller’s method appears a different url than the one I’m putting in the AJAX url, why ?

inserir a descrição da imagem aqui

  • Look at your file . htaccess ve if you have any rewrite rules

  • Vlw Marcelo, it was myself that was eating bronha KKK, a coffee and a little distraction I found the mistake

  • Quiet, hehe :D

1 answer

0


You are using the method GET to send data. This method transmits all information through the URL, that is, when you are sending your information through the URL, which can be potentially dangerous. In general the method is used GET to request data for your back end.

A request using GET will leave the url more or less like this

http://www.exemplo.com?var1=alguma_coisa&var2=outra_coisa

If you want to carry your data with a higher level of security you should use the method POST. If you want to understand more about these methods you can read here

  • Vlw Phelipe, thank you so much I was doing wrong even, with the post worked and tb was missing in the url string, Vlw by help !

Browser other questions tagged

You are not signed in. Login or sign up in order to post.