duan7772
duan7772
2012-03-06 02:47

转到urlfetch.Transport.RoundTrip,可以调用GET,但不能调用POST?

已采纳

I'm having a problem getting any response from urlfetch.Transport.RoundTrip in GAE Go. When I browse a page that makes the call in a browser, the call is executed as intended. When the same function is called from a POST request made by poclbm Bitcoin miner, I can't get a response.

The call is made by this package I made at line 77.

Is it possible, that in Google App Engine one can request data from other web pages under a HTTP GET, but not POST, or is there something else that can be causing this problem?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • duangang79177 duangang79177 9年前

    You can do POST request from App Engine using http.Client.Post, just make sure you create the http client with urlfetch.Client function.

    点赞 评论 复制链接分享