Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Automatically Post New Discussion

AprecheApreche
edited June 2010 in Vanilla 2.0 - 2.8
Hi, I'm still using a Vanilla 1 forum, and I want to setup another web application (Python/django) running on another server to automatically post new discussions to the Vanilla 1 forum.

I don't really need help with the Python parts, I just need help with the HTTP parts. What fields/data do I need to post to which URL in order to make it happen? Also, I somehow have to grab the discussion ID when it's done, so I can link to it. Thanks.

Comments

  • lucluc ✭✭
    edited June 2010
    Using cURL to post a file at the same time, I use:

    form_data = [
    ("PostBackAction", "SaveComment"),
    ("FormPostBackKey", formPostBackKey),
    ("DiscussionID", fileDiscussionID),
    ("Body", fileBody),
    ("file", (pycurl.FORM_FILE, filePath))
    ]

    to post at http://forum.domain.name/post.php

    And you I parse a page right before to get the FormPostBackKey.
Sign In or Register to comment.