We have the folowing link: http://mvp.sos.state.ga.us/
Rather than create a db to replicate information that MVP page, we would like to use our own form, and then behind the scenes, send information to the site above to get results back using component called MSXML2.ServerXMLHTTP.
Unfortunately, I know nothing about this component or how to use it.
Would someone be kind enough to please give me pointers on how use our own … to send information to the site above and get results back to our form?
We are basically trying to get users to enter first initial, lastname, county, date of birth.
Thanks
Best Answer
You can use this component for http-requests like "POST", "GET", "DELETE" etc.
To create the object:
To send data using method "GET":
Note that Open method has 3 parameters: HTTP method, URL, asynchronous call.
Note that Send method on a "GET" ignores its parameter. (In this case we are passing parameters via the URL.)
To send data using method "POST":
Note for "POST" that Send method passes parameters in key-value pairs format like: key1=value1&key2=value2&so=on... or any other data like XML, JSON, etc.)
These are the basics of this component. If you need more information, you can check microsoft's docs page out.
An example code for getting form values and sending them using xmlhttp post method.