Yii 1, send POST



  • Good day! There's a website on Yii-1, and if you're calling a certain method, createLinck, you need to send POST-data to another site, with no form, all data are ready.

    Please tell me how to do this.



  • Use curl and method POST

    There's an extension for yii. http://www.yiiframework.com/extension/yii-curl/ use this:

    $output = Yii::app()->curl->post($url, $data);
    

    Or naive phpl curl.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2