How to send NULL in HTTP query string?

前端 未结 3 1880
广开言路
广开言路 2020-12-01 14:30

I\'m developing an API that can accept the main three data types as values to query string parameters: boolean, string & numeric (

3条回答
  •  春和景丽
    2020-12-01 14:48

    or just don't send any value. leave query param value empty in your get request url.. like -

    API URL/?foo=&some_other_param=value

    in the API foo will be received as null

提交回复
热议问题