Hate Posted September 14, 2010 Share Posted September 14, 2010 I'm trying to automate with php and the form I need to submit has a post call with hidden inputs. How do I mimic a post call to another page with the hidden inputs using curl? The hidden inputs has to be carried over to the next page so I can continue the process though. Quote Link to comment Share on other sites More sharing options...
s0c0 Posted September 14, 2010 Share Posted September 14, 2010 I'm trying to automate with php and the form I need to submit has a post call with hidden inputs. How do I mimic a post call to another page with the hidden inputs using curl? The hidden inputs has to be carried over to the next page so I can continue the process though. Just include the names of the hidden fields in your cURL post parameters. I've never done this, but it should work. Do you not know how to see the names of the hidden post fields? If not the web developer plugin for firefox is great or just view source and search. Quote Link to comment Share on other sites More sharing options...
Hate Posted September 14, 2010 Author Share Posted September 14, 2010 I'm trying to automate with php and the form I need to submit has a post call with hidden inputs. How do I mimic a post call to another page with the hidden inputs using curl? The hidden inputs has to be carried over to the next page so I can continue the process though. Just include the names of the hidden fields in your cURL post parameters. I've never done this, but it should work. Do you not know how to see the names of the hidden post fields? If not the web developer plugin for firefox is great or just view source and search. I know how to view the source and see what I need.. I just didn't know if there was a special way to send hidden inputs. I've never really used them before, so I should just be able to add them as post parameters? I'm not entirely sure how to do that though.. can you post an example? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.