• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Triggering a "post" action on a webform

Double Trouble

Elite Member
Howdy, I'm a complete newbie with web development.

I'd like to create a page or script that will perform a "post" action to a server (I know what the field names and values etc have to be) without the user actually having to click something or do anything. That way, I can just have the windows scheduler launch the form/script and have it do the post action.

Ideas?
 
Markbnj's suggestion will work, but I'm not sure if you have Windows Scheduler execute JavaScript on a static HTML page on the hard drive.

You might be better off creating a VBScript. Something like this should work:

Dim oXMLHTTP
Set oXMLHTTP = CreateObject("Microsoft.XMLHTTP")
oXMLHTTP.open "POST", "http://server/pagetosubmit", False
oXMLHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
oXMLHTTP.send "field1=value1&field2=value2&field3=value3"
 
If you want to have Windows scheduler launch something, and you can install something to launch, the best thing to launch is probably cURL. Looks like the -F option could be helpful to you.
 
Thanks for the suggestions guys, I'm going to take a look at those options to see what I can conjure up.

Hammer, check. Duct tape, check. Crazy glue, check. Beer, check. Ok, I'm ready to go develop something 😉
 
Originally posted by: Double Trouble
Thanks for the suggestions guys, I'm going to take a look at those options to see what I can conjure up.

Hammer, check. Duct tape, check. Crazy glue, check. Beer, check. Ok, I'm ready to go develop something 😉

You forgot your Dr. Pepper and chips.
 
Originally posted by: Crusty
Originally posted by: Double Trouble
Thanks for the suggestions guys, I'm going to take a look at those options to see what I can conjure up.

Hammer, check. Duct tape, check. Crazy glue, check. Beer, check. Ok, I'm ready to go develop something 😉

You forgot your Dr. Pepper and chips.

Sorry dude, the only acceptable drinks while "coding" are Jolt, Mt. Dew or coffee.
 
Originally posted by: zebano
Originally posted by: Crusty
Originally posted by: Double Trouble
Thanks for the suggestions guys, I'm going to take a look at those options to see what I can conjure up.

Hammer, check. Duct tape, check. Crazy glue, check. Beer, check. Ok, I'm ready to go develop something 😉

You forgot your Dr. Pepper and chips.

Sorry dude, the only acceptable drinks while "coding" are Jolt, Mt. Dew or coffee.

Coffee in the morning... Dr. Pepper in the evening!
 
Back
Top