tags:

views:

26

answers:

1

Hi I want to get image from another site but I requires referrer information to show image.

image address is: http://www.foo.com/hist.gif?21918+201020 this adress show gif image if you came this page from foo.com Think I can do this with curl but I don't know how to do this.

I have to show image with img tag

A: 

You can use the CURLOPT_REFERER option. See this answer for some sample code.

Matthew Flaschen