We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now


Using HttpWebRequest to post data using ColdFusion Web Services in VB

Medium Priority
Last Modified: 2013-12-16
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

This Url is behind CF session.

Thanks in advance!
Watch Question


Is HttpWebRequest even the same as xmlhttp.Open?

Yash Infinite Solutions Private Limited
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.