stretchr / goweb

A lightweight RESTful web framework for Go
632 stars 61 forks source link

Body is empty with GET request #7

Closed dwa012 closed 11 years ago

dwa012 commented 11 years ago

I am trying to send some JSON data to a GET request. The body is empty, even though I am transmitting some. It works fine for POST actions

EDIT: Seems to be working now. I think it was whatever tool I was using to send the request

matryer commented 11 years ago

GET requests do not support bodies. Consider following RESTful patterns.

Hope this helps Mat

On 19 Apr 2013, at 20:28, dwa012 notifications@github.com wrote:

I am trying to send some JSON data to a GET request. The body is empty, even though I am transmitting some. It works fine for POST actions.

— Reply to this email directly or view it on GitHub.

dwa012 commented 11 years ago

My apologies. I am still new with working with web protocols in this fashion.

matryer commented 11 years ago

Not a problem - let us know if you have any more questions.

On 20 Apr 2013, at 09:44, dwa012 notifications@github.com wrote:

My apologies. I am still new with working with web protocols in this fashion.

— Reply to this email directly or view it on GitHub.