小编Den*_*lov的帖子

如何在浏览器中打开本地文件

网站有标签,其中href是本地文件的路径.例如,<a href="D:\test.txt">Link</a>.它不起作用.

怎么做对了?:)它必须只在IE中工作,其他浏览器不是必需的

html browser internet-explorer uri href

8
推荐指数
2
解决办法
6万
查看次数

URL 查询字符串中的 OR 语句

我需要在 REST API 中支持 OR 语句,但我不知道如何构建正确的查询字符串。也许,像这样的事情?

  • /rest?author=Obama&author=McCain
  • /rest?author=奥巴马|麦凯恩

或者可能存在标准解决方案?

rest get http query-string

6
推荐指数
1
解决办法
1万
查看次数

How HTTP PUT should work

For example, there is resource on URI: /api/items/123

Response body for GET request is {"Id": "123", "Foo": "foo", "Bar": "bar"}

I send PUT request. The body of it is {"Bar": "newBarValue"}

In case of this request body, should properties Id and Foo be removed? Or just Bar property should be modified? Or server should return error code?

rest http put

5
推荐指数
1
解决办法
1030
查看次数

标签 统计

http ×2

rest ×2

browser ×1

get ×1

href ×1

html ×1

internet-explorer ×1

put ×1

query-string ×1

uri ×1