LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-11-2010, 06:54 AM   #1
devwink
Member
 
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!

like
<?php
$remote = 'https://example.com/image.php';
curl_setopt($ch, CURL_SSL_VERIFYPEER,0); // for testing
curl_setopt($ch, CURL_SSL_VERIFYHOST,0); // for testing
curl_exec($ch);
curl_close($ch);

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
devwink
Member
 
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
 
  


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:44 PM.

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