Question : send post request from access vba
Answered by : dangerous-duck-vv90a65aeev3
{"tags":[{"tag":"textarea","content":"' VBA project reference required:\n' Microsoft XML, v6.0\n\nDim postData As String\npostData = \"word1=hello&word2=world\"\n\nDim objXmlHttp As New MSXML2.XMLHTTP\nobjXmlHttp.Open \"POST\", \"http:\/\/localhost:8080\/postTest.php\", True\nobjXmlHttp.setRequestHeader \"Content-Type\", \"application\/x-www-form-urlencoded\"\nobjXmlHttp.setRequestHeader \"Content-Length\", Len(postData)\nobjXmlHttp.send postData\nSet objXmlHttp = Nothing","code_language":"whatever"}]}
Source : https://stackoverflow.com/questions/39397067/asynchronous-http-post-request-in-ms-access | Last Update : Wed, 08 Feb 23