Comments (14)
you can setup http client
//optionally
.client(your_okhttp_client)
from rxretrojsoup.
@yishangfei with test https://stackoverflow.com/a/27840834
from rxretrojsoup.
i know okhttp setUser-Agent success
Because okhttp need to set a url succeed ,RxRetroJsoup also need to set a url RxRetroJsoup print display did not succeed @hram
from rxretrojsoup.
hi What is a good way @hram
from rxretrojsoup.
But you do not setup okhttp client in second example
from rxretrojsoup.
sorry
Wrote the same as before you set the User-Agent?
@hram
from rxretrojsoup.
Now you can set interceptor for okhttp and in this one set user agent
from rxretrojsoup.
Did not understand, I set up in the RxRetroJsoup OKhttp client or not, whether you have done before the user agent,Is there a demo?
This question bothers me for a long time~
from rxretrojsoup.
@hram hlep me~
from rxretrojsoup.
you can create custom interceptor for okhttp
public class SomeInterceptor implements Interceptor {
@Override
public Response intercept(Interceptor.Chain chain) throws IOException {
Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder().header("Accept-Language", "some_header_parametr").build();
}
}
and add this one to okkhttp
OkHttpClient.Builder builder = new OkHttpClient.Builder().addNetworkInterceptor(new SomeInterceptor());
from rxretrojsoup.
activity is it written like this?
from rxretrojsoup.
from rxretrojsoup.
Or do not have access to the computer version of the link ~ OMG
from rxretrojsoup.
you konw okhttp set cookie?
from rxretrojsoup.
Related Issues (19)
- Friends, this project can not open any ghosts
- Nullable JsoupText HOT 7
- RxJava 2 HOT 4
- Failed to resolve: com.github.florent37:retrojsoup:1.0.3 HOT 1
- Compilation failed if unit test exist HOT 1
- Hello, I downloaded your demo, the interface did not show after running HOT 1
- Kotlin support HOT 6
- Failed to resolve: com.github.florent37:retrojsoup:1.0.4 HOT 3
- how to get multiple <p> text inside <div>?
- Got an empty list in 'com.github.florent37.rxretrojsoup.sample.androidarsenal.MainActivity'
- d
- jcenter is at end of life :(
- Support OkHttp HOT 3
- Failed to resolve: com.github.florent37:retrojsoup:1.0.2 HOT 2
- Compilation failed HOT 7
- How to get value HOT 1
- There any sample apk? HOT 2
- #Bug HOT 5
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 rxretrojsoup.