What is the best way to design a HTTP request when somewhat complex parameters are needed?

前端 未结 11 1010
一向
一向 2020-12-13 00:21

I have some web services that I am writing and I am trying to be as RESTful as possible. I am hosting these web services using a HTTPHandler running inside of IIS/ASP.NET/S

11条回答
  •  粉色の甜心
    2020-12-13 00:56

    If you are generating these long urls on server, you can make use of compression for path info.

    So if you have something like /?param1=bla-bla¶m2=bla-bla you just compress that parameters and make url looks like /?query=ASsadcnfAFFASFscnsdlc

    When you get such request, you just decompress them and parse parameter string

提交回复
热议问题