oltu-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Zamula <club.brant...@gmail.com>
Subject Strange behavior with multipart data
Date Wed, 28 Aug 2013 16:04:37 GMT

Today, I found some strange code, related to multipart data. When we create
*org.apache.oltu.oauth2.rs.request.OAuthAccessResourceRequest* with *
ParameterStyle.BODY*, we reach this peace of code:

if (OAuthUtils.isMultipart(request)) {
is not single part.");

So, my question - why do we need this checking - in OAuth standard there is
no comments about multipart data in request. I need to send some binary
files to server, so how I can do that with authorization? What problems do
we get in approach - use *ParameterStyle.QUERY* with access_token in query
string and binaries in body, also as multipart data (POST with query

Best Regards,
*Dmitry Zamula*

Saint-Petersburg, Russia
UTC/GMT +4 hours

Mobile phone:    +7 (911) 910-2075
Skype Id:          brantner_ru
E-mail:              club.brantner@gmail.com

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message