How to send NULL in HTTP query string?

心已入冬 提交于 2019-11-27 23:05:07

Send a URLEncoded NUL value (%00) for any thing that you're specifically setting to null. It should be correctly URL Decoded.

or just dont 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

Ariel

With IIS and C#, I send it this way:

?param=#
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!