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

  • Home
  • SEARCH
  • 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 6120681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:41:47+00:00 2026-05-23T15:41:47+00:00

My task is to retrieve an xml from https://test24.highrisehq.com/tasks/upcoming.xml that is a secure connection

  • 0

My task is to retrieve an xml from https://test24.highrisehq.com/tasks/upcoming.xml that is a secure connection and demands authentication. I am trying to achieve this using curl but I don’t know why the username and password thing is not working for me. Here is my code:

$url = "https://test24.highrisehq.com/tasks/upcoming.xml"; 
$ch = curl_init();     
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: application/xml', 'Content-Type: application/xml'));
curl_setopt($ch, CURLOPT_USERPWD, "omayrakhtar@gmail.com:akhtar1234");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,true);
curl_setopt($ch, CURLOPT_CAINFO, "D:\wamp\www\xml\-.highrisehq");
//curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_URL, $url);  


$result = curl_exec($ch);  

print_r($result); 

The problem is that when I set VERIFYPEER to true I get nothing displayed on the browser and when it is set to false I get HTTP Basic: Access denied. Both curl and openssl are enabled. The credentials in the code are correct, if anyone wants to use it he is more than welcome. Your help would be appreciated.

Regards

Umair

  • 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-05-23T15:41:47+00:00Added an answer on May 23, 2026 at 3:41 pm

    Setting the CURLOPT_SSL_VERIFYPEER flag to false just indicates that you are not interested in validating the ssl certificate, and is not related to the HTTP authentication you’re failing.
    If you want to enable the certificate verification, you might want to look into installing ca-bundle.

    The real problem here currently is the HTTP verification. It just seems the credentials you provided (CURLOPT_USERPWD) do not grant you the required permissions. You’ll have to contact them to gain working credentials.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a script task in an SSIS package that is supposed to retrieve
I have a data flow task that extracts data from one database and inserts
I'm trying to retrieve tasks from Rembmer the Milk API. I run this code:
I'm kinda stuck with this task. I have a macro that retrieve two ranges
The task is to retrieve parameters from session via JSTL. The session parameter name
my task is to retrieve a set of messages from GMail via POP3 (no
My task is to retrieve html strings from urls using Java. I know how
I have the following beans Task, ServerDetails and ApplicationDetails. I wish to retrieve all
TASK : I have an existing xml document (UTF-8) which uses xml namespaces and
How can I get the task_id value for a task from within the task?

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.