import requests

roffjfl = 'programming'
qjsgh = '406537'

res = requests.get('http://g...content-available-to-author-only...e.com/board/lists/?id=' + roffjfl)
cookie = res.headers['set-cookie']

#CI_C값 추출.
st = cookie.find("ci_c")
ed = cookie.find(";", st)
cookie = cookie[st+5:ed];

#http 헤더
httpHeaders={"Accept": "*/*"
,"Accept-Encoding": "gzip:deflate:sdch"
,"Accept-Language":
        "ko-KR:ko;q=0.8:en-US;q=0.6:en;q=0.4"
,"Connection": "keep-alive"
,"Content-Type":
        "application/x-www-form-urlencoded; charset=UTF-8"
,"Host": "gall.dcinside.com"
,"Origin": "http://g...content-available-to-author-only...e.com"
,"Referer":
        "http://g...content-available-to-author-only...e.com/board/view/?id="+roffjfl+"&no="+qjsgh
,
        "User-Agent":
        "Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML: like Gecko) Chrome/30.0.1599.101 Safari/537.36"
,"X-Requested-With": "XMLHttpRequest"}

#post데이터
postdata = dict(id=roffjfl, no=qjsgh, memo='테스트', ci_t=cookie, name='ㅇㅇ', password='123123' )

post = requests.post('http://g...content-available-to-author-only...e.com/forms/comment_submit', data=postdata,headers=httpHeaders)
print(post.text)