Thread: Programmatically post to forums

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    17

    Programmatically post to forums

    How could I programmatically post to a forum (like this one) using C?
    Any code examples?

  2. #2
    The larch
    Join Date
    May 2006
    Posts
    3,573
    How do we know that the previous post was not posted programmatically?

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    17
    Huh? It wasn't.

  4. #4
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    If you're thinking of inventing a spamming program, forget it, because it's moronic and stupid.

    If you're thinking of inventing something useful, then I will say that unless you can find libraries that support such a task, you'll be stuck with learning how to use sockets and handle raw HTTP. It can be quite ugly if you're a beginner to coding.

  5. #5
    Registered User
    Join Date
    Oct 2006
    Posts
    17
    Of course I want the second.

    Is there a library that can help me?
    Other than cURL?

  6. #6
    Lean Mean Coding Machine KONI's Avatar
    Join Date
    Mar 2007
    Location
    Luxembourg, Europe
    Posts
    444
    The HTTP RFC2616 isn't really that complicated, all you have to do is send the exact same data as you would by submitting a form, which means, send the POST data to the "submit" script, which you'll find in the form.action part in the html code.

    Just connect to the webserver on port 80 and send the data, even if you don't read out the returned data, your post has been submitted and added to the forum by the script.

  7. #7
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318

    Exclamation

    Yeah and before you know it they'll add CAPTCHA tests on here...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Unknown memory leak with linked lists...
    By RaDeuX in forum C Programming
    Replies: 6
    Last Post: 12-07-2008, 04:09 AM
  2. How many forums members to change a lightbulb.
    By adrianxw in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 01-01-2004, 08:31 PM
  3. Post your Best Text Adventure
    By Joe100 in forum Game Programming
    Replies: 3
    Last Post: 08-15-2003, 05:47 PM
  4. Auto POST
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 06-07-2003, 10:42 AM