[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

need to get data from another page

Asked by bennybutler in JavaScript, Asynchronous Javascript and XML (AJAX)

Tags: javascript xss

My apache server is behind a load balancer that, when using SSL only gives me the IP address of the load balancer, not the client.  When NOT using the SSL I can get the IP address from x-forwarded-for header (or something like that.)  I'm looking for a javascript that I can run on an SSL page that will pull the correct IP off of a non-ssl page.  My non ssl page would only present the IP address, something like

http://www.domain.com/ip.php will be:
<? echo $_SERVER['x-forwarded-for'];?>

And for testing , I just want to alert('$ip') and get the IP address spit out.

Oh, and it shouldn't throw up any "do you only want to view secure parts in the page" errors.
Any ideas?
[+][-]11/04/09 07:36 PM, ID: 25746554Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 01:45 AM, ID: 25747911Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/05/09 07:30 AM, ID: 25750489Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 07:33 AM, ID: 25750534Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/05/09 05:53 PM, ID: 25756060Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625