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

No way to add MultipartEntity to post request. #705

Closed
madale2010 opened this issue Sep 14, 2016 · 4 comments
Closed

No way to add MultipartEntity to post request. #705

madale2010 opened this issue Sep 14, 2016 · 4 comments

Comments

@madale2010
Copy link

Using the given methods there isn't a way to add parts or MultipartEntity's to current service. If you try to use payload it doesn't correctly setup headers needed for a multi part form post.

@kullfar
Copy link
Member

kullfar commented Oct 6, 2016

Pull Requests are welcome ;-)
Actually I have never done such task as sending MultipartEntities using OAuth signed APIs.
As I understand your problem, You want to upload some file to the external API and ScribeJava cann't sign the request correctly?

@madale2010
Copy link
Author

You are correct, due to the nature of the request and the requirements involved I do believe it is possible but it would require changing some of the core parts of the code. If scribe is built on top of other packages such as apache http packages, it could be added to the building of requests to allow for proper headers to be sent.

@kullfar
Copy link
Member

kullfar commented Oct 7, 2016

for the moment ScribeJava can use AsyncHttpClient, NingAsyncHttp and standard java.net.HttpURLConnection

Yep. I think it's possible to implement.

@kullfar
Copy link
Member

kullfar commented Dec 7, 2016

there are some changes in ScribeJava
It should support now java.io.File and byte[] payloads b7d0c6d
And PUT, DELETE methods 43ea452
Maybe it will helps you a bit

@kullfar kullfar closed this as completed Aug 2, 2017
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