Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7219003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T21:33:53+00:00 2026-05-28T21:33:53+00:00

Is it possible to extract content from a website using Curl?If yes then how?

  • 0

Is it possible to extract content from a website using Curl?If yes then how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T21:33:54+00:00Added an answer on May 28, 2026 at 9:33 pm

    Curl is simply a library to make url calls. You can use it to POST to a url or GET which is probably what you want (as well as control many other things). You can also do this using file_get_contents and will normally be easier if you don’t need the extra control that CURL can give you. This will simply give the web sites content, to extract you will want to use an html parser (not regexes (unless you are 100% certain of the format (but not really even then))) and I would suggest simple_dom.

    For example $html = file_get_contents(“http://www.google.com”); will put the html of the google home page into the $html variable and then it is upto you to do with it as you will. The main times I use CURL are when I want to pretend my server is a browser (it lets you put your own user agent string), when I want to pull many sites concurrently, or when I need to POAST rather than GET… but of course it can do many other things as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Using C# regular expressions to remove HTML tags Extract Content from Div
Possible Duplicates: How do I extract HTML content using Regex in PHP RegEx match
is it possible to read or extract html/text from a different .html page using
Looking for solution to extract content from a PDF file (using console tool or
Is it possible to extract the string content of a specific line in a
Is it possible to extract all of the VBA code from a Word 2007
Is it possible to extract a single file or diff of a file from
is it possible to extract dynamic loaded text from a swf (flash application) programatically
Is it possible to extract a script from an MySQL database to create a
I discovered that it is possible to extract the hard-coded strings from a binary.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.