Comments (5)
- try and use a known working client and capture the http traffic
- check
com.burgstaller.okhttp.digest.DigestAuthenticatorTest#testWWWAuthenticate__withUriPathAndParameters
and inject the observed values into the test and see whether the library creates the correct authorization header.
from okhttp-digest.
user / password was set with HttpUrlConnection so i switch to OkHttp and now I've got the familiar error :
java.io.IOException: unexpected end of stream
From what I understand the error is from OkHttp, I need to wait a potential correction. I'll stay with HttpUrlConnection in the mean time.
from okhttp-digest.
As the SO post hints unexpected end of stream means that your server is sending an invalid response with a wrong content-length header. This has nothing to do with authentication.
As stated earlier the best advice I can offer is to capture the http traffic from HttpUrlConnection (i.e. by using a proxy such as Fiddler or CharlesProxy) and then check the difference between the two (i.e. barebones-digest and okhttp-digest).
You can then re-create the problem in the unit test com.burgstaller.okhttp.digest.DigestAuthenticatorTest#testWWWAuthenticate__withUriPathAndParameters
.
All that okhttp-digest
does is to calculate the correct Authorization
header.
from okhttp-digest.
Ok thanks. Before doing this, is there a way to bypass or override the check lenght since I cannot update the server (it's a Smart TV) ?
from okhttp-digest.
you would need to check with the okhttp
guys. This has nothing to do with okhttp-digest
.
from okhttp-digest.
Related Issues (20)
- IncompatibleClassChangeError using digest access authentication and latest OkHttp HOT 4
- Explain how to run ProxyAuthenticationManualTest HOT 4
- java.lang.NoSuchMethodError with okhttp 4.3.0 HOT 1
- Authentication Cache Concurrent Modification Exception HOT 3
- Still getting 401 after Authentication Challenge HOT 8
- Http proxy with digest auth, error when server sends HTTP-301 redirect HOT 2
- How to use UTF-8 in basic and digest access authentication HOT 7
- Failed to resolve: com.burgstaller:okhttp-digest:1.19 HOT 5
- How to use OkHttp 3.12.x which supports API level 9+ in okhttp-digest HOT 3
- Copyright missing HOT 1
- Jcenter closing in May HOT 5
- Latest 1.x version is not in Maven Central HOT 2
- How can I Set Realm and Client Nonce in ADVANCED of Authorization Digest Auth HOT 3
- Send initial request with authentication header HOT 6
- java.lang.NoSuchFieldError HOT 17
- After putting app idle for some time it gives 401 issue for authorised request HOT 6
- Authentication fails if the site being accessed during proxy setup is HTTPS and digest authentication is used. HOT 4
- Are the `com.burgstaller:okhttp-digest` artifacts hosted on any public repo? HOT 6
- org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is **java.lang.IncompatibleClassChangeError**: Expected static method okhttp3.internal.http.RequestLine.requestPath(Lokhttp3/HttpUrl;)Ljava/lang/String; HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okhttp-digest.