Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-11-2010, 06:54 AM   #1
Registered: May 2006
Posts: 49

Rep: Reputation: 15
PHP cURL how to get page image from remote server without errrors

Hi All

I can get a dynamic image to display in my webpage

<td><img src="<? echo image.php" ;?>"

where image.php is some ones example that outputs some characters to screen.

All works fine

But the site is ssl,and It wont load the "foreign" object for security reasons.

I was wondering I cURL could trick the browser into thinking that the image source is still on the same server.

Both sites are ssl!

$remote = '';
curl_setopt($ch, CURL_SSL_VERIFYPEER,0); // for testing
curl_setopt($ch, CURL_SSL_VERIFYHOST,0); // for testing

doesn't return anything.

Any ideas would be appreeciated

Last edited by devwink; 04-11-2010 at 07:23 AM.
Old 04-12-2010, 07:53 AM   #2
Registered: May 2006
Posts: 49

Original Poster
Rep: Reputation: 15
Thanks Guys,

It turns out that i mad the server SSL and forgot to port forward 443 to the pubilc ip address behind the dsl modem


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASCII characters in Javascript/PHP page, on local server vs. remote forward Linux - Server 1 03-16-2010 05:47 PM
[SOLVED] Use curl to load a page every 5 seconds xxdxhxx Linux - Newbie 4 11-30-2009 06:45 PM
[SOLVED] Using curl to log in to https page. Chris_no Linux - General 3 09-03-2009 03:50 PM
i cannt use curl get this page,,,why henryluo Linux - Software 1 03-01-2008 08:07 AM
can i use php to grab remote image and display as if local whysyn Programming 4 03-29-2007 03:39 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration