View Single Post
  #6 (permalink)  
Old April 17th, 2009, 02:38 PM
Old Pedant Old Pedant is offline
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Ugh...I should have looked at that URL you posted before opening my mouth.

The problem is, Craiglist apparently generates a unique <FORM> for each and every posting.

For example, I hit the URL once and got a <FORM> that looked like this:
Code:
<form id="postingForm" action="/atl/S/msg/none/x/ERJkQMOKlP0yshV8/y2mi6" 
      method="post" enctype="multipart/form-data">
<input type="hidden" name="postingKey" id="postingKey" value="ERJkQMOKlP0yshV8">
<input type="hidden" name="test" id="test" value="y2mi6">
... and so on ...
So then I hit the same URL again and got a <form> that looked like this:
Code:
<form id="postingForm" action="/atl/S/msg/none/x/PMAzNiDklEgG23zH/i2w9n" 
      method="post" enctype="multipart/form-data">
<input type="hidden" name="postingKey" id="postingKey" value="PMAzNiDklEgG23zH">
<input type="hidden" name="test" id="test" value="i2w9n">
... and so on ...
So it's not at all like filling out a <form> on most sites. Unfortunately.

I think it still could be done, but it's probably a lot more work than the way you were starting to go. So I sincerely apologize for putting both feet firmly between my teeth.

Incidentally, that URL doesn't even produce a response from an MSIE 6 browser! So obviously Craigslist also customizes the URLs to match a specific browser type! Wow. I'm pretty sure I *could* do it the way I suggested, but it's at least a couple of days' work. (With most sites, it's 30 minutes or so.)
Reply With Quote