php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76911 When called curl_exec($ch); function it not work but same code run on another
Submitted: 2018-09-21 10:43 UTC Modified: 2018-09-21 11:39 UTC
From: sushil dot adsare at konnet dot co dot in Assigned:
Status: Duplicate Package: cURL related
PHP Version: 7.2Git-2018-09-21 (Git) OS: windows 10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sushil dot adsare at konnet dot co dot in
New email:
PHP Version: OS:

 

 [2018-09-21 10:43 UTC] sushil dot adsare at konnet dot co dot in
Description:
------------
When called curl_exec($ch); function it not work but same code run on another machine then it work properly (another machin-PHP version 5.3 )        
**********
        echo("1 !!!\n");
        $ch = curl_init();
		echo("2 !!!\n");
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_POST, 1);
		echo("3 !!!\n");
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
		echo("4 !!!\n");
        curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
		echo("5 !!!\n");
        //execute post
        $output = curl_exec($ch);
		echo("6 !!!\n");
        echo($output."Output !!!\n");
        //close connection
        curl_close($ch);
		echo("7 !!!\n");
***********
Please Check Attach file for more ref


Expected result:
----------------
Just add expected result in php error.png file 
Please check file


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-09-21 10:58 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2018-09-21 10:58 UTC] requinix@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2018-09-21 11:39 UTC] requinix@php.net
-Status: Feedback +Status: Duplicate
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 05:01:28 2025 UTC