473,503 Members | 4,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HttpWebRequest

A little about what I am trying to accomplish

I am tyring to do a HttpWebRequest to a company called Paymentech.

Here are some of there requirements:
It supports one method of communication - HTTPS
I will only be doing HTTP POST requests.
The web address are as follows.
orbitalvar1.paymentech.net/authorize on port 443
Now the XML gateway URL must be accessed using the https protocol. But
interfacing to the Orbital Gateway using SSL does not require us to have a
certificate. The Orbital Gateway uses a non-authenticated SSL session,
meaning the client is not authenticated using a digital certificate as a
component of the SSL negotiation.
The Orbital Gateway uses source IP authentication to authenticate the
request generation. This is only true for the production system, the
development system will not need this.

This is the code I have to try to send the xml:
Dim xmlDoc As New XmlDocument
xmlDoc.Load("C:\CreditCardAuth.xml")
Dim request As HttpWebRequest =
CType(HttpWebRequest.Create("https://orbitalvar1.paymentech.net:443/authorize"),
HttpWebRequest)
request.Method = "POST"
Dim requestData As Byte() =
System.Text.Encoding.UTF8.GetBytes(xmlDoc.OuterXml )
request.ContentLength = xmlDoc.OuterXml.Length
Dim requestStream As Stream = request.GetRequestStream
requestStream.Write(requestData, 0, requestData.Length)
requestStream.Flush()
requestStream.Close()
Dim response As HttpWebResponse = CType(request.GetResponse,
HttpWebResponse) Dim responseData As StreamReader = New
StreamReader(response.GetResponseStream)
Dim sendData As Byte() = System.Text.Encoding.UTF8.GetBytes(xmlDoc.OuterXml )

I am getting this error on the requestStream
The underlying connection was closed: Unable to connect to the remote
server.
TIA,
Brett
Jun 23 '06 #1
0 1459

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
12299
by: Dan Battagin | last post by:
Is there a known bug with the interaction between the HttpWebRequest and the ThreadPool? I current spawn several HttpWebRequest's using BeginGetResponse, and they work for a while, using worker...
10
19307
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is...
9
8149
by: Mike Cronin via DotNetMonster.com | last post by:
Hi there, Can anyone tell me what level of encryption is used when making an HTTPS POST request through an instance of the System.Net.HttpWebRequest object? Thanks much in advance! Mike...
16
12610
by: thomas peter | last post by:
I am building a precache engine... one that request over 100 pages on an remote server to cache them remotely... can i use the HttpWebRequest and WebResponse classes for this? or must i use the...
1
2587
by: sfoxover | last post by:
Hi, Could someone please give me some suggestions on how to make this class robust. I need to be able to handle around 20 similtanious requests to this class which causes a web browser to...
6
4151
by: Mike Koerner | last post by:
Hi, I am having problems setting the HttpWebRequest Date header. I understand that it is a restricted header and I do receive the "This header must be modified with the appropriate property." ...
16
11014
by: Cheung, Jeffrey Jing-Yen | last post by:
I have a windows form application that generates a request, downloads an image, and waits the user to enter in login info. Unfortunately, this image is dynamic and based on session data. I have...
0
1534
by: boxboy | last post by:
Hi, I'm writing a console application and am having a problem with HttpWebRequest when posting data to a webserver. A "System.Net.WebException: The server committed a protocol violation" is always...
3
4890
by: JansenH | last post by:
We have implemented a 'HTTP Post' client in C# that posts Xml documents to a webserver. This is working fine if the post rate is one post for every 20 seconds. But if the post rate is increased to...
1
7983
by: Proogeren | last post by:
I have a problem with a httpwebrequest that I am creating. The request in itself looks correct but using fiddler I see that a www-authentication header is sent along as well. The code is pasted...
0
7194
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6976
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.