Search code examples
iosobjective-c

Temp data is adding while calling an API


Here is my API while calling:

http://jamboreebliss.com/sayar/public/api/v2/ticket/delete?
api_key=9p41T2XFZ34YRZJUNQAdm&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9yzdWIiORFdoaVIiCV8_oYP8&id[]=45,125

After calling at last parameter i.e id[] in this field, temp data is coming

http://jamboreebliss.com/sayar/public/api/v2/ticket/delete?
    api_key=9p41T2XFZ34YRZJUNQAdm&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9yzdWIiORFdoaVIiCV8_oYP8&id%5B%5D=45,125

id%5B%5D=45,125 this coming ( i. e %5B%5D)

Why is it coming? Any idea?


Solution

  • id%5B%5D=45,125 represent [ and ]. The encoding is called "URL encoding".

    enter image description here