一

{"type":"编程笔记"}


  • Home

  • Archives
  • Search

php5 get http response body using curl library

Posted on 2008-03-19   |   In php

get response body of specified web page using php5, such as google homepage.

<?php    ob_start();    $ch = curl_init("http://www.google.com/");    curl_exec($ch);    curl_close($ch);    $retrievedhtml = ob_get_contents();    ob_end_clean();    // ob_end_flush();    echo $retrievedhtml;?>
get parameter using php and compress querystring using javascript
difference of function tostring() in ie7 and ff2
  • Table of Contents
  • Overview
yuweijun

yuweijun

492 posts
12 categories
RSS
GitHub Twitter

This post does not have a Table of Contents

© 2021 yuweijun
Powered by Hexo
Theme - NexT.Mist.KISS