The curl that I have works and is very simple:
curl -d
"semester=20141Summer+2013+++++++++++++++++++++++++++++&courseid=&subject=IT++INFORMATION+TECHNOLOGY&college=&campus=1%2C2%2C3%2C4%2C5%2C6%2C7%2C9%2CA%2CB%2CC%2CI%2CL%2CM%2CN%2CP%2CQ%2CR%2CS%2CT%2CW%2CU%2CV%2CX%2CZ&courselevel=&coursenum=&startTime=0600&endTime=2359&days=ALL&All=All+Sections" http://www3.mnsu.edu/courses/selectform.asp
I'm trying to do this using Net::HTTP in ruby on rails, I have this:
uri = URI.parse("http://www3.mnsu.edu/courses/selectform.asp")
params = {"semester" => "20141Summer+2013+++++++++++++++++++++++++++++",
"subject" => "IT++INFORMATION+TECHNOLOGY",
"campus" => "1%2C2%2C3%2C4%2C5%2C6%2C7%2C9%2CA%2CB%2CC%2CI%2CL%2CM%2CN%2CP%2CQ%2CR%2CS%2CT%2CW%2CU%2CV%2CX%2CZ",
"startTime" => "0600",
"endTime" => "2359",
"days" => "ALL",
"ALL" => "All+Sections"}
#===== FORM POST =====#
@response = Net::HTTP.post_form(uri, params)
However, everytime it's run, it returns a "Microsoft VBScript runtime error 800a0009" The curl never does that.
Any hints on what doesn't match up?