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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KudzullcAuthor Commented:
Is HttpWebRequest even the same as xmlhttp.Open?

Thanks!
Lucas
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.