cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Help with curl

From: <lobos_at_webvida.com>
Date: Fri, 17 Jun 2005 16:28:00 -0300

If you don't have control of the data from the origin you could use regular expressions to alter it.
  ----- Original Message -----
  From: Arthur Bickle
  To: curl-and-php_at_cool.haxx.se
  Sent: Friday, June 17, 2005 2:56 PM
  Subject: Help with curl

  Hello, Does anyone know if there is a way to parse and alter the information coming from

  the website before it is sent to the browser?

   

  <?

  $url=”http://www.anydomain.com%94;

   

  $ch= curl_init($url);
  if(!$ch)
  die(sprintf('Error [%d]: %s', curl_errno($ch), curl_error($ch)));

  $data=curl_exec($ch);
  if(!$data){
  die(sprintf('Error [%d]: %s', curl_errno($ch), curl_error($ch)));

  }

  curl_close ($ch)

   

  ?>

   

  Thanks

  art

  --
  No virus found in this outgoing message.
  Checked by AVG Anti-Virus.
  Version: 7.0.323 / Virus Database: 267.7.4/16 - Release Date: 6/15/2005
Received on 2005-06-17