Using HttpWebRequest to post data using ColdFusion Web Services in VB

Posted on 2006-04-03
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!
Question by:Kudzullc

Author Comment

ID: 16362232
Is HttpWebRequest even the same as xmlhttp.Open?


Accepted Solution

Naveen Swamy earned 1500 total points
ID: 16367895
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

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question