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

Multipart Message Boundary String #191

Closed
Lepetere opened this issue Feb 19, 2014 · 1 comment
Closed

Multipart Message Boundary String #191

Lepetere opened this issue Feb 19, 2014 · 1 comment

Comments

@Lepetere
Copy link

Me and multipart requests again...

I need to generate a multipart request with the following header:

content-type: multipart/form-data; boundary=XXXsubpartXXX

So this means I need to tell the server already in the header which boundary string will be used in the body.

Since clj-http generates boundary strings automatically, is there any way to get this boundary string before the http message is sent, so I can add it to the header?

The other way of dealing with this would be for me to specify a boundary string myself. Is that possible?

Btw I found this: https://groups.google.com/forum/#!topic/clojure/JGCKVAqP6h4
But it didn't really help me since I don't really want to generate the body myself.

@dakrone
Copy link
Owner

dakrone commented Feb 28, 2018

Closing as there has been no progress on this in four years, the linked message contains a workaround. If anyone else would like this or disagrees let me know and I'll be happy to re-open it.

@dakrone dakrone closed this as completed Feb 28, 2018
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