Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A sharp in URL parameter

If you can help me I will be very grateful. My problem is i send a request via google chrome like that :

http://localhost:8080/Webservise/rest/getinfo?user=user1&pwd=rdd#en&sscc=009

and whene i test the url he return :

user = user1
pwd=rdd
sscc= null

Because the # is an special caracter any proposition ?

Thanks a lot.

like image 303
Mehdi Abed Avatar asked Sep 12 '25 02:09

Mehdi Abed


1 Answers

Yes # is a fragment identifier. To ensure its interpreted as part of a query string you must URL encode it (to %23) - You should be doing this as routine for all query string values.

like image 153
Alex K. Avatar answered Sep 15 '25 11:09

Alex K.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!