ntesla123 Posted March 4, 2011 Share Posted March 4, 2011 How do I post to a forum where the Submit button doesn't have a name? I haven't found anything like post=Post or post=Submit or anything of that sort. I have used curl in several different forums, but I have never seen anything like this. I'm sure it's simple though. <input type="submit" value="Post" tabindex="3" onclick="return submitThisOnce(this);" accesskey="s" class="button_submit" /> This forum also has a hidden variable where the name is never the same, but generated: <input type="hidden" name="ee40576" value="6d412be2ae8f344b177ad5b8ef2575d2" /> I'm pretty sure I can just send ee40576=6d412be2ae8f344b177ad5b8ef2575d2 though. The forum is an smf forum, and I have been able to log in. I have also posted at other smf forums similar to this, only there the submit button had a name. Link to comment https://forums.phpfreaks.com/topic/229583-posting-to-a-forum-using-curl/ Share on other sites More sharing options...
beegro Posted March 4, 2011 Share Posted March 4, 2011 Take a look at what the submitThisOnce() function does. It could do many different things (AJAX, adding additional elements, simply submitting the form, etc.) If it's a simple submit then you can easily use cURL to send values to the "action" target. Link to comment https://forums.phpfreaks.com/topic/229583-posting-to-a-forum-using-curl/#findComment-1182823 Share on other sites More sharing options...
lastkarrde Posted March 4, 2011 Share Posted March 4, 2011 Install the Live HTTP Headers addon for firefox (https://addons.mozilla.org/en-us/firefox/addon/live-http-headers/). Navigate to the reply page, turn on Live HTTP headers, post a reply, then check Live HTTP Headers to see what is being sent. Link to comment https://forums.phpfreaks.com/topic/229583-posting-to-a-forum-using-curl/#findComment-1182949 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.