1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Curl scripting - firefox plugin - is there such a thing

Discussion in 'PHP & Perl' started by rankdominator, Mar 2, 2010.

Tags:
  1. rankdominator

    rankdominator Junior Member

    Joined:
    Dec 18, 2009
    Messages:
    117
    Likes Received:
    67
    Hi all,

    This may seem like a daft request - but is there a firefox plugin that will emulate your on-screen web browser actions (i.e. launch a website url, fill out form etc.) and then convert this to curl type php syntax?

    Is that asking too much?

    Basically I need to emulate what I do in the browser, and have that converted to CURL syntax for php. Without messing around with too much coding...

    Any help or applications would be appreciated

    Thanks
     
  2. kaidoristm

    kaidoristm Power Member

    Joined:
    Feb 13, 2009
    Messages:
    561
    Likes Received:
    726
    Occupation:
    Freelancer
    Location:
    Estonia
    Home Page:
    Nope there isn't such a thing.
     
  3. hpv222

    hpv222 Power Member

    Joined:
    Feb 8, 2010
    Messages:
    736
    Likes Received:
    274
    run this search on google:
    curl and php windows

    and the top link should point you in the right direction - I am running PHP on my windows computer and I'm pretty sure that you;ll figure out curl too
     
  4. kaidoristm

    kaidoristm Power Member

    Joined:
    Feb 13, 2009
    Messages:
    561
    Likes Received:
    726
    Occupation:
    Freelancer
    Location:
    Estonia
    Home Page:
    You can install php on windows- yes
    You can run curl on windows- yes
    Is there such a program or plugin which sniffs activity of my browser and writes an script based on that activity with nice user friendly interface- no
     
  5. smoky1930

    smoky1930 Newbie

    Joined:
    Dec 23, 2009
    Messages:
    16
    Likes Received:
    14
    Location:
    Huntsville
    Sounds like you are looking for something more along the lines of imacros.
    Posted via Mobile Device
     
  6. n2zen

    n2zen Regular Member

    Joined:
    Sep 27, 2009
    Messages:
    269
    Likes Received:
    70
    There's a handy tool that does that in perl, generating output for www::mechanize. Best thing since sliced bread, if you have perl available.
     
  7. adbox

    adbox Power Member

    Joined:
    May 1, 2009
    Messages:
    658
    Likes Received:
    107
    Home Page:
    For complex jobs like this I consider ubot, for simple jobs PHP some times is the best option. It's sounding like a ubot job. (never tried imacros)
     
  8. donduck

    donduck Junior Member

    Joined:
    May 9, 2007
    Messages:
    162
    Likes Received:
    17
    Location:
    Australia
    it takes about 10 minutes to install apache and php on windows
    and curl or any php code will work
     
  9. Grizzy

    Grizzy Senior Member

    Joined:
    Nov 11, 2008
    Messages:
    919
    Likes Received:
    999
    PHP Snoopy is a nice little class for a little more advanced php browser emulation...

    Check it out :)
     
  10. n2zen

    n2zen Regular Member

    Joined:
    Sep 27, 2009
    Messages:
    269
    Likes Received:
    70
    iMacros is close, and then again www::mechanize for perl has a recorder that converts actions to script. Personally, I like mechanize for web automation, but that's just me.
     
  11. relaxin

    relaxin Junior Member

    Joined:
    Aug 13, 2007
    Messages:
    100
    Likes Received:
    25
    Occupation:
    CEO
    I think snoopy class is full of fgets(), fsockopen() while this dude needs something to do with curl
     
    Last edited: Apr 17, 2010
  12. aftershock2020

    aftershock2020 Senior Member

    Joined:
    Oct 19, 2007
    Messages:
    981
    Likes Received:
    477
    Actually, when you install apache, php, java, curl, etc..all that does is allows your computer to be able to read the script, as a false server. It is more of a ' reader ' to test if it is functional and to check for errors on your local machine. This is an alternative to having to upload and test each script by remote server access.

    Php scripts will test , edit and parse but ' any php code will work ' - as in fully function to the point of using it on your machine...not so much.
     
  13. pyronaut

    pyronaut Executive VIP

    Joined:
    Dec 9, 2008
    Messages:
    1,229
    Likes Received:
    1,422
    ... I think everyone is overlooking OP's actual request..

    AFAIK, there isn't something like you are looking for. If you are going for short curl scripts, then there is no problem with doing it manually, I guess the issue would be if you are spanning across hundreds of websites, trying to output that.

    For things like submitting forms, Use something like httpliveheaders plugin for firefox. That will record all the post data (And get data if you need it). And although it doesn't plug it directly into a curl expression with all the data, it is far easier to segment it up into a curl request.