Solved

Posting xml to a website that uses a CGI script

Posted on 2006-11-13
4
346 Views
Last Modified: 2010-04-16
Team, I am in need of some help with posting xml to a website that is using a cgi script.  I was thinking about using webservice, but am unsure how to do so.  If anybody has done this before, could you give me a little guidance.

Thanks

Doug
0
Comment
Question by:i61213
4 Comments
 
LVL 16

Expert Comment

by:muzzy2003
ID: 17930369
Hmm. Perhaps the wrong subject area for this one Doug?
0
 
LVL 15

Accepted Solution

by:
ozymandias earned 500 total points
ID: 17930434
So you want to post the xml to a cgi script ?

You should be able to do it using the WebClient class.

WebClient client  = new WebClient();
NameValueCollection collection = new NameValueCollection();
collection.Add("name","your_xml_here"); //where name is the name of the form field the cgi script expects the xml to arrive in.
byte[] responseArray = client.UploadValues("url_of_cgi_script","POST",collection);


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DateTimepicker 4 33
Help with C#, MVC, razor. 6 23
Reset asp.net login password 4 31
C# Comparing String Arrays. 5 25
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

920 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now