Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8212671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:50:13+00:00 2026-06-07T10:50:13+00:00

How to display content of other page which has authentication enabled? Warning: file_get_contents(http://abc/report.cmd?report=123): failed

  • 0

How to display content of other page which has authentication enabled?

Warning: file_get_contents(http://abc/report.cmd?report=123): failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in //html/tracker/index2.php on line 13

    $file_path = 'http://abc/report.cmd?report=123';
    $content=file_get_contents($file_path);
    echo $content;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T10:50:15+00:00Added an answer on June 7, 2026 at 10:50 am

    Use the curl library to authenticate

    <?php
    // create a new cURL resource
    $curl = curl_init();
    
    // set URL and other appropriate options
    curl_setopt($curl, CURLOPT_URL, "http://www.example.com/");
    curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ) ; 
    curl_setopt($curl, CURLOPT_USERPWD, "username:password"); 
    
    // grab URL and pass it to the browser
    curl_exec($curl);
    
    // close cURL resource, and free up system resources
    curl_close($curl);
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to display content in more than one languages in a page. For
I'm creating a Facebook app in which I want to display content depending on
Jnews Display list Content: http://i204.photobucket.com/albums/bb267/kellyshl/Untitled.png i wan to know how to make it like
I need to display the content of another page from a function using return.
I have a page which has three components: suggested items, suggested people, and a
I wish to display content depending on the given role(s) of the active user
I need to display content from an OLAP cube in Sharepoint. This could be
I need ability to display content in Hex View, like this from WinHex Offset
I am using InfoBubble to display content in GMap. However the zIndex seems not
For a client server application, I'd like to display content with a web browser

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.