ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

need curl help

December 13, 2007 1:57am

Subscribe [1]
  • #1 / Dec 13, 2007 1:57am

    rubai

    3 posts

    hi

    i am trying to get a portion of a html page with curl. it returns the full page with html, CSS, JS. so it takes little bit long time.

    is it possible to get a particular part of the html?

  • #2 / Dec 13, 2007 3:56am

    tonanbarbarian

    650 posts

    curl will always return the entire page
    you then need to break it up yourself
    years ago (6 or so) I used regular expressions to break up a page and extract some data
    admittedly it was basically just stripping the body tags and getting everything in between but it is possible to do

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases