On 07/31/2018 06:15 PM, Bernie Cosell wrote: > > 'cookie2' => '$Version="1"', > 'csrf-token' => > '...', > 'setmemberopts-btn' => 'Submit Your Changes', > 'cookie' => > 'testlist-fantasyfarm.com+admin=...', > 'user-agent' => 'Mozilla/5.0', > 'unsubscribees' => 'bernie' > ---------------------------------------- > '_method' => 'POST', > '_uri' => > http://lists.fantasyfarm.com/admin.cgi/testlist-fantasyfarm.com/member > s/remove')}, 'URI::http' ), > > And the page I got back was the remove page -- no error no success [it > should be an error, since I'm not subscribed to the list I'm playing > with..:o)] > Do I have to do something special with the data for the 'unsubscribees' ? I > know it is a TEXTAREA -- but I just assumed I could pass it a string and > that'd be OK.
The above should be OK. The unsubscribees should be a string of email address and/or display_name <address> lines separated by newlines, but just "bernie" should be enough to give the error. I note however that I went to http://lists.fantasyfarm.com/listinfo.cgi/testlist-fantasyfarm.com just to see it, and I can see by the form of the URL ythat this is a modified Mailman. Primarily the fact that the listname in the URL is 'testlist-fantasyfarm.com' rather than just 'testlist' indicates that this is a Mailman modified to support lists in multiple domains without list name collisions. Also, the footer has no link to the listinfo overview. Without knowing what the mods are, it's hard for me to be definitive about anything, however if your script is posting the same data that a web browser would post, it SHOULD work. Further, If the CGI is comparable to the standard one, the fact that you don't get a message about form lifetime expired means it gets your csrf_token OK and the fact that you don't get the login page in return means it gets your cookie OK and all you should need beyond that to at least get an error is a non-blank unsubscribees value. Thus, I don't know what's going on. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org