doubi1928 2011-10-22 11:04
浏览 33
已采纳

GAE Go http帖子链接

I have a web app on GAE written in Go that performs some calculations for the user. The website communicates with the server through a simple HTTP Post. I want to let the user be able to share a link to the result they obtained without changing much in my Go code.

Is there some way to encode a HTTP Post message as a website url that would execute on the app engine as if the user sent the Post from the website?

How would the code for a button that would copy the proper link to user's clipboard (noting that the field values can change between page being loaded and user wanting the link, so hard-coding the values through GAE parser wouldn't work).

  • 写回答

2条回答 默认 最新

  • doule6314 2011-10-22 11:56
    关注

    Use a GET instead of a POST. That's the point of GET : it generates a bookmarkable URL.

    GET should always be used for idempotent operations, unless the sent data contain secret information or are too large to be put into GET parameters.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 企业资源规划ERP沙盘模拟
  • ¥15 树莓派控制机械臂传输命令报错,显示摄像头不存在
  • ¥15 前端echarts坐标轴问题
  • ¥15 CMFCPropertyPage
  • ¥15 ad5933的I2C
  • ¥15 请问RTX4060的笔记本电脑可以训练yolov5模型吗?
  • ¥15 数学建模求思路及代码
  • ¥50 silvaco GaN HEMT有栅极场板的击穿电压仿真问题
  • ¥15 谁会P4语言啊,我想请教一下
  • ¥15 这个怎么改成直流激励源给加热电阻提供5a电流呀