Using HttpWebRequest to post data using ColdFusion Web Services in VB

Hi Experts,
I have two problems here.  First, this url provided below (VB.NET code) is behind a session login screen and can not be retrieved without user login which I have during instance of app.  Second, I am very unclear with this implementation using VB.  All the MSDN libraries point to XML and C++ formatting when explaining how to "POST" and catch "RESPONSE" .  The code below(VB.NET code) would be great for retrieving information from a URL.  But I can not gather the information because the DSN for my coldfusion is password protected. Please help this is a very important part of my project.  I have the VB6 code of a past app done by outside contractors.  the simple code in VB6 isnt even close to .NET

Dim xmlhttp as new xmlhttp
xmlhttp.Open"POST", "" & myUrl & "", False
is all i need, i can pass the new data in with the VB6 with this line
xmlhttp.send "" & SendInfo & ""

done.  Crazy that I can not find any info on this on EE.  Please help!!

Here is what I have so far.

Dim objRequest As HttpWebRequest = HttpWebRequest.Create("http://www.2thegame.com/admin/actions_feb26/act_uploadB2BGolf.cfm")
Dim objResponse As HttpWebResponse = objRequest.GetResponse
Dim sourceCode As New System.IO.StreamReader(objResponse.GetResponseStream) ' setup new stream
MsgBox(sourceCode.ReadToEnd)

This Url is behind CF session.

Thanks in advance!
Lucas
LVL 3
KudzullcAsked:
Who is Participating?
 
Naveen SwamyYash Infinite Solutions Private LimitedCommented:
they are tow different method for the same approach
in vb6 you could use xmlhttp.open to achieve the similar results as you would achieve in vb.net
0
 
KudzullcAuthor Commented:
Is HttpWebRequest even the same as xmlhttp.Open?

Thanks!
Lucas
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.