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

cURL Script to Manipulate Poll?

Discussion in 'HTML & JavaScript' started by cygod1, Sep 18, 2012.

  1. cygod1

    cygod1 Newbie

    Joined:
    Sep 18, 2012
    Messages:
    2
    Likes Received:
    0
    Sorry if this isn't in the correct section, didn't really know where to post it but I hope this is the right section.

    Basically, I'm trying to write a script that manipulates a poll and keeps sending the value and increasing the vote count. I heard you can do this using a cURL script but I'm not too familiar with cURL.

    The is a poll located here: livewire.kcra.cmo/Event/High_School_Playbook_-_Games__Polls . What I got so far is that the poll sends a GET request to livewire.kcra.cmo/api/rest/poll/12343/vote/45367?format=json
    I'm not too sure of where to go from there, the id number of the poll is 12343 and the id of the option is 45367. If anybody can help me with the script, I'd greatly appreciate it, thanks.

    Btw, if there is another solution that does not use cURL, please let me know as well. Thanks a bunch!

     
  2. soklot

    soklot Newbie

    Joined:
    Aug 24, 2012
    Messages:
    19
    Likes Received:
    3
    hi,
    try jsoup and java.
    You can use proxys, different referer, different user agent.
    if i have time i will post simple example
     
  3. cygod1

    cygod1 Newbie

    Joined:
    Sep 18, 2012
    Messages:
    2
    Likes Received:
    0
    If you can help, that'd be awesome. How do you use a different referer?
     
  4. soklot

    soklot Newbie

    Joined:
    Aug 24, 2012
    Messages:
    19
    Likes Received:
    3
    stackoverflow.c()m/questions/8986617/jsoup-posting-modified-document
    stackoverflow.c()m/questions/6581655/jsoup-useragent-how-to-set-it-right

    Sorry for the links