Curl receiving different pages

From: Some Gei (some_at_gei.com)
Date: 09/14/04

  • Next message: Janwillem Borleffs: "Re: Embed PHP script in HTML page..."
    Date: Mon, 13 Sep 2004 19:57:17 -0400
    
    

    Hi All,

    I'm using a simple php+curl script to fetch a users feedback profile from
    eBay...

    for example from the following url:

    http://feedback.ebay.ca/ws1/eBayISAPI.dll?ViewFeedback&userid=parkers9-half

    and the script will then take the page and strip out the relevant data
    (name, date, comments, etc), using regular expressions.

    I wrote the script on my local machine (xp + apache 2) and tested it out,
    and its working fine. However when I upload the exact same script to my
    off-site linux machine, it wouldn't work anymore.

    And then i discovered that it wasnt able to strip out the data because ebay
    is sending a slightly different page to the linux machine than it is to my
    machine, even though they are both using the exact same script. The page
    looks identical at first... but little tiny things are different, for
    example in the one sent to the linux machine, certain image attributes like
    'height' are not sent.

    Does anyone know why this could be, and how I could trick ebay into sending
    the same page to the linux machine?

    Thanks.


  • Next message: Janwillem Borleffs: "Re: Embed PHP script in HTML page..."

    Relevant Pages

    • Re: HTML parsing
      ... I've posted a new version of the code on my website ... > I am completely new to Perl and am needing some help with a short script I ... > am using to search ebay for new items. ... > sub handle_links ...
      (comp.lang.perl.modules)
    • HTML parsing
      ... I am completely new to Perl and am needing some help with a short script I ... am using to search ebay for new items. ... sub handle_links ...
      (comp.lang.perl.modules)
    • Re: grabbing html from pages that require login
      ... You might be able to use httpclient for this. ... human with a browser. ... Ive written a script that accesses certain pages on ebay and scapes ...
      (comp.lang.ruby)
    • Re: Perl Script to track UPS-Packages
      ... I have a script called keep-an-eye. ... This way I keep an eye on, say, my own ebay auctions, as well as on ... echo Watching $name: change detected. ... cat $FILE.diff ...
      (rec.crafts.metalworking)
    • grabbing html from pages that require login
      ... When building the script I used ebay webpages I ... security reasons requests the user to reenter their detials. ... Is there a way to get avoid this login ...
      (comp.lang.ruby)