Suppose the image's access is hotlinking-protected (for example by htaccess or by some other way because I have no clue) and hence, I can not access it directly in my browsers address bar via the URL verbatim (e.g. http://example.com/images/test.jpg
).
But if loaded through img
tag in my browser-window and with relative path
(<img src="/images/test.jpg" />
inside the HTML) the image is visible on the page.
So, I wanted to ask if it is possible to make a request though CURL to get that image? I use PHP.
This question does not solve the problem php curl: how can i emulate a get request exactly like a web browser?