Jump to content

Posting to a forum using curl


ntesla123

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.