Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save forrest-mao/0845fdaa4a9cc21473a5 to your computer and use it in GitHub Desktop.
Save forrest-mao/0845fdaa4a9cc21473a5 to your computer and use it in GitHub Desktop.

callbackUrl returnUrl 和 persistentNotifyUrl 七牛的请求和处理说明和demo

这里 的 对你的 callbackUrl 发送的请求是x-www-form-urlencoded 类型的Post请求 enter image description here 为了给客户端有一致的体验,我们要求 callbackUrl 返回包 Content-Type 为 "application/json",即返回的内容必须是合法的 JSON 文本。 enter image description here

对你的 persistentNotifyUrl 发送的请求 是application/json 类型的POST请求

persistentNotifyUrlRequest

对你的 returnUrl 发送的Get请求 enter image description here

这里有一个java的 demo

其中包括了设置 putPolicy 的callbackUrl returnUrl 和 persistentNotifyUrl 字段和接收回调 通知 请求参数的接收和返回

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment