add on problem

I tried to add a source repository but after I typed in repo “http:kodi …..” it said
“Couldn’t receive directory information. This could be due to the network not being connected. Would you like to add it anyway? Yes, No.”

But my internet was connected and was working well.
Could someone help me please? I am newbie here