A
A
afna2016-05-30 19:46:48
Java
afna, 2016-05-30 19:46:48

How to specify login and password for Glide?

Hello!
I'm trying the Glide library for Android. It is needed to load an image and display it in an ImageView.
If it's a url like
www.some.domen/storage/images/image.jpg
then everything loads fine.
But if access is denied by login and password like this
http://USER:[email protected]/storage/images...
then the image is not loaded.
What's wrong, how do I upload a picture using a username and password?
Who faced, unsubscribe, please?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2016-05-31
@sulik93

Add a basic authentication header.
stackoverflow.com/questions/28106527/glide-adding-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question