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

前端 未结 11 1027
一向
一向 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 01:04

    Use custom HTTP headers with HTTP GET if nothing else works out. HTTP headers can be set by nearly all clients.

    Generally it is best to use URL parameters in the query string. Too many URL parameters indicates that you need to split into more fine-granular services.

提交回复
热议问题