Craigslist PHP/cURL poster

dor@tehexploa

Registered Member
Joined
Apr 25, 2009
Messages
95
Reaction score
26
The real problem I'm having is sending the appropriate data to craigslist in my array. And the array I mean is the one you hafta send to POSTFIELDS for multipart formsHere is a header I saved from them:

POST /det/P/cas/none/x/F8PDFPgpZcSwIpjV/iizxe <-- this is generated new each time you press 'post'

and then the meat is here:

Code:
Cookie: cl_def_lang=en; cl_scrck=U2FsdGVkX18xNjIyNTE2Mh56WxxNnWcOubzJriumqIMtvUcUUeOL3_wyEaccf_Rp
Content-Type: multipart/form-data; boundary=---------------------------14989327023195
Content-Length: 3689
-----------------------------14989327023195
Content-Disposition: form-data; name="U2FsdGVkX18xNjIyNTE2Mi1QrWJY1eJRt-WC67Fm68SHS:e0Ch8hbXgmWjNz_K.4GJd8pI5R4LXoE"

U2FsdGVkX18xNjIyNTE2Mvr4TR8ECn1IBHcg2ii7fLmYupq6LKdwEdnxT331sAf6
-----------------------------14989327023195
Content-Disposition: form-data; name="postingKey"

F8PDFPgpZcSwIpjV
-----------------------------14989327023195
Content-Disposition: form-data; name="test"

iizxe
-----------------------------14989327023195
Content-Disposition: form-data; name="mix"

w4m
-----------------------------14989327023195
Content-Disposition: form-data; name="U2FsdGVkX18xNjIyNTE2Mj4H_3ySj1_YK6MbUg3Ag-n6OfO-Tx1F75XgaUjnse6X5stQbxQq4PE"

U2FsdGVkX18xNjIyNTE2Mqs-N2TaP1eB6wp-8uS7tOTlXaLtf8zWCB-J2Fxgt7giNLqqi7sshFI
-----------------------------14989327023195
Content-Disposition: form-data; name="U2FsdGVkX18xNjIyNTE2MpGGxy-Drax2Xp4EWzb5K4ldr5QCTXSd8YB6YnNMCprD8UlEe6c3obA"

posting title
-----------------------------14989327023195
Content-Disposition: form-data; name="U2FsdGVkX18xNjIyNTE2Mmq2Vtjh2egsNIFe4jDfRW:yubIuIUbybwQ"

23
-----------------------------14989327023195
Content-Disposition: form-data; name="U2FsdGVkX18xNjIyNTE2MksfmiAbOE3mOoq1xoCgw62GyAbOHE4KtBKU4rdeVJvW1DxycaQPFC.A"

specific place
-----------------------------14989327023195
Content-Disposition: form-data; name="U2FsdGVkX18xNjIy:NTE2Mm0td9xQz8NSbuGIe9dY1pZ6ocEF5oeFrlG1Wy982uyS"

[email protected]
-----------------------------14989327023195
Content-Disposition: form-data; name="U2FsdGVkX18xNjIyNTE2MmlplDbMD8yxqqckhrp7bgTOvJRadh96HULBrBSWhTgnYiTy.cGZtFDk"

[email protected]
-----------------------------14989327023195
Content-Disposition: form-data; name="U2FsdGVkX18xNjIyNTE.2MmZoGe-AmFyzcbwzEPbbAZKIDiEmmqJQP-3xog7iXsWn"

C
-----------------------------14989327023195
Content-Disposition: form-data; name="U2FsdGVkX18xNjIyNTE2Mj4H_3ySj1_YK6MbUg3Ag-n6OfO-Tx1F75XgaUjnse6XETRttyocu9g"

U2FsdGVkX18xNjIyNTE2Mqs-N2TaP1eB6wp-8uS7tOTlXaLtf8zWCB-J2Fxgt7giPTIi4a3n8Bo
-----------------------------14989327023195
Content-Disposition: form-data; name="U2FsdGVkX18xNjIyNTE2Mj4H_3ySj1_YK6MbUg3Ag-n6OfO-Tx1F75XgaUjnse6XX7Gyg1sHMqk"

U2FsdGVkX18xNjIyNTE2Mqs-N2TaP1eB6wp-8uS7tOTlXaLtf8zWCB-J2Fxgt7giCyYyLy21kz4
-----------------------------14989327023195
Content-Disposition: form-data; name="U:2FsdGVk:X18xNjIyNTE2MoFWbLnBXiwkkRF6aSj89HZ2a.:Hb2df9zK40LiCp5k1Sz"

Hello this is my ad and I hope you like it.
-----------------------------14989327023195
Content-Disposition: form-data; name="image1"

add
-----------------------------14989327023195
Content-Disposition: form-data; name="imgfile1"; filename=""
Content-Type: application/octet-stream


-----------------------------14989327023195
Content-Disposition: form-data; name="image2"

add
-----------------------------14989327023195
Content-Disposition: form-data; name="imgfile2"; filename=""
Content-Type: application/octet-stream


-----------------------------14989327023195
Content-Disposition: form-data; name="image3"

add
-----------------------------14989327023195
Content-Disposition: form-data; name="imgfile3"; filename=""
Content-Type: application/octet-stream


-----------------------------14989327023195
Content-Disposition: form-data; name="image4"

add
-----------------------------14989327023195
Content-Disposition: form-data; name="imgfile4"; filename=""
Content-Type: application/octet-stream


-----------------------------14989327023195
Content-Disposition: form-data; name="U2FsdGVkX18xNjIyNTE2Mvr4TR8ECn.1IiXKTr2-uVkhP0sc40CCV0sabz32i05yh"

Continue
-----------------------------14989327023195--

HTTP/1.x 200 OK
Connection: close
Cache-Control: no-cache; no-store
Last-Modified: Wed, 20 May 2009 02:16:01 GMT
Set-Cookie: cl_scrck=U2FsdGVkX18xNjIyNTE2Mh56WxxNnWcOubzJriumqIMtvUcUUeOL3_wyEaccf_Rp; domain=.craigslist.org; path=/; expires=Fri, 19-Jun-2009 02:16:01 GMT
Date: Wed, 20 May 2009 02:16:01 GMT
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 1998
Content-Type: text/html; charset=ISO-8859-1;
Server: Apache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
----------------------------------------------------------
so i'm assuming the first couple array spots would look like this

Code:
[COLOR=#000000][COLOR=#0000bb]<?php
$arrMyPostVars [/COLOR][COLOR=#007700]= array([/COLOR][COLOR=#dd0000]'U2FsdGVkX18xNjIyNTE2Mi1QrWJY1eJRt-WC67Fm68SHS:e0Ch8hbXgmWjNz_K.4GJd8pI5R4LXoE' [/COLOR][COLOR=#007700]=> [/COLOR][COLOR=#dd0000]'U2FsdGVkX18xNjIyNTE2Mvr4TR8ECn1IBHcg2ii7fLmYupq6LKdwEdnxT331sAf6'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#dd0000]'postingkey' [/COLOR][COLOR=#007700]=> [/COLOR][COLOR=#dd0000]'F8PDFPgpZcSwIpjV'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]ETC ETC[/COLOR][COLOR=#007700]);
[/COLOR][COLOR=#0000bb]?>[/COLOR][/COLOR]
but is there a way maybe to submit an empty array and acquire their posting key and seemingly random values and then go back and fill in the user-input stuff

or maybe even grab the server response headers from submitting an empty form


any help would be GREATLY appreciated
 
Last edited:
I fail.. I just realized that those are in the source code. Sorry guys.
 
Back
Top