Necroing:
I have this same issue. I'll try to explain it a different way. In the Craigslist account page, you can choose to 'renew' your posts every three days and then they'll get a fresh look from people. What we're trying to figure out is how to manage the POST command correctly. Here is the "inspect element" in Chrome for the "renew" hyperlink in the account page (I blanked out my account number with ##):
<form action="https://post.craigslist.org/manage/##########" method="POST"><input type="hidden" name="action" value="renew"><input type="hidden" name="crypt" value="U2FsdGVkX182NDQ0NjQ0NNYTGOKaJXDu34zUjkZCkVXDzwxZxSW1KA"><input type="submit" name="go" value="renew" class="managebtn"></form>
I know how to use string-in-string etc. to parse out the URL, actions, values, etc but what I can't get correct is the formatting for the POST command itself. I've tried including and exlcuding different parts (action, value, crypt, etc.). I get a 200 returned using the code below but it doesn't actually renew the post. I know the crypt values are different, they change regularly.
; The data to be sent
$sPD = 'action=/manage/##########&name=action&value=renew&name=crypt&value=U2FsdGVkX182MzM0NjMzNOpDZW1SVeBDug_VuldCvGPgwoMzcrXJZA'
; Creating the object
$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("POST", "https://post.craigslist.org", False)
$oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
; Performing the Request
$oHTTP.Send($sPD)
; Download the body response if any, and get the server status response code.
$oReceived = $oHTTP.ResponseText
$oStatusCode = $oHTTP.Status
;If $oStatusCode <> 200 then
MsgBox(4096, "Response code", $oStatusCode)
;EndIf
; Saves the body response regardless of the Response code
$file = FileOpen("Received.html", 2) ; The value of 2 overwrites the file if it already exists
FileWrite($file, $oReceived)
FileClose($file)
Thanks for the help guys - I plan to write this up and give it away (the current batch of CL renew apps are really friggin expensive).