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

http-request url-encoder is not called #36

Closed
necto opened this issue Sep 29, 2013 · 2 comments
Closed

http-request url-encoder is not called #36

necto opened this issue Sep 29, 2013 · 2 comments

Comments

@necto
Copy link

necto commented Sep 29, 2013

It's not clear from the documentation, which are the cases, the :url-encoder parameter is called in. But such a call:

(drakma:http-request "http://ya.ru" :url-encoder 1)

Wont produce any error, because url-encoder is not called at all. Is this a feature?

@aarvid
Copy link

aarvid commented Sep 30, 2013

try:

(drakma:http-request "http://ya.ru" :url-encoder 1 :method :post :parameters '(("foo" . "bar")))

gives error:

The value 1 is not of type (OR FUNCTION SYMBOL)

From the documentation:

URL-ENCODER specifies a custom URL encoder function which will be used by drakma to URL-encode parameter names and values.

@necto
Copy link
Author

necto commented Sep 30, 2013

Thanks, didn't mention the "parameter names and values" part.

@necto necto closed this as completed Sep 30, 2013
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