Jump to content

Curl Question


Hate

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/213434-curl-question/#findComment-1111172
Share on other sites

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?

Link to comment
https://forums.phpfreaks.com/topic/213434-curl-question/#findComment-1111174
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.