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 7872079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:06:06+00:00 2026-06-03T02:06:06+00:00

I was trying to do the following $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,php://input ); curl_setopt($ch,

  • 0

I was trying to do the following

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"php://input" );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
$result=curl_exec ($ch);
echo curl_error($ch);
echo $result;

to get raw post data using curl because my hosting com disabled all socket functions except curl so i cannot do file_get_contents(“php://input”);

i get an error like

Protocol php not supported or disabled in libcurl1

what shall i do?

  • 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-03T02:06:07+00:00Added an answer on June 3, 2026 at 2:06 am

    You can use $HTTP_RAW_POST_DATA instead of “php://input”. For details see the php://input section at http://php.net/manual/wrappers.php.php

    Other solution: what are the alternatives for php://input and $HTTP_RAW_POST_DATA when file_get_contents and always_populate_raw_post_data are disabled

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

Sidebar

Related Questions

I have the following code in PHP $ch = curl_init(http://blog.com); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch,
I am trying to form the following CURL post request through PHP? How do
I have the following code: curl_setopt($ch, CURLOPT_URL, $request); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
I am trying following, 1. Get response using Ajax from the users selection which
I'm trying the following command in PHP 5.2.12 : print (date('Y-m-d', strtotime('2009-12 last day')));
I am trying the following: [PersistenceMode(PersistenceMode.InnerProperty)] [TemplateContainer(typeof(TemplateContainer))] public virtual ITemplate LayoutTemplate { get; set;
Is there something simpler than the following. I am trying to make a GET
I am trying to post to a REST service using PHP cURL but I'm
All, I am trying to HTTPS POST a SOAP request via PHP's cURL wrapper
I'm trying to get the content of a webpage that require authentication using PHP.

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.