Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get request not sending body #68

Open
shmish111 opened this issue Jul 24, 2015 · 2 comments
Open

get request not sending body #68

shmish111 opened this issue Jul 24, 2015 · 2 comments

Comments

@shmish111
Copy link

When I use the following request in google chrome, it shows me the payload that was sent correctly

(http/post (str host "/profiles/search") {:with-credentials? false
                                           :accept            "application/edn"
                                           :edn-params        {:query query}})

However if I use a GET request it appears from chrome developer tools that no payload is sent:

(http/get (str host "/profiles/search") {:with-credentials? false
                                           :accept            "application/edn"
                                           :edn-params        {:query query}})

Looking in the source code I cannot work out why this is?

@fl00r
Copy link

fl00r commented Aug 24, 2018

Same problem

@fl00r
Copy link

fl00r commented Aug 24, 2018

cljs-http doing everything properly,

but, accordingly to https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send body in GET/HEAD request are not supported. which is weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants