I am trying to create an POST method using HttpWebResponse from VB.NET.
The original code is in C++ with the following setup:
==================================
CInternetSession sess("CAutoTestComm", 1, INTERNET_OPEN_TYPE_DIRECT);
pHC=sess.GetHttpConnection(server, 0, port);
pHF=pHC->OpenRequest("POST", "/boundxml");
==================================
This code will generate the header below. How to I translate this code into VB.NET using HTTPWebresponse.
<!---------READ HEADER-------->
POST /boundxml HTTP/1.1
User-Agent: CAutoTestComm
Host: 198.xxx.yyy.zzz:8080
Content-Length: 212
Cache-Control: no-cache
Thank you very much for your help.
The original code is in C++ with the following setup:
==================================
CInternetSession sess("CAutoTestComm", 1, INTERNET_OPEN_TYPE_DIRECT);
pHC=sess.GetHttpConnection(server, 0, port);
pHF=pHC->OpenRequest("POST", "/boundxml");
==================================
This code will generate the header below. How to I translate this code into VB.NET using HTTPWebresponse.
<!---------READ HEADER-------->
POST /boundxml HTTP/1.1
User-Agent: CAutoTestComm
Host: 198.xxx.yyy.zzz:8080
Content-Length: 212
Cache-Control: no-cache
Thank you very much for your help.