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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2019 The PHP Group
All rights reserved.
Last updated: Fri Mar 22 20:01:27 2019 UTC