Solved

Posting xml to a website that uses a CGI script

Posted on 2006-11-13
4
348 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

733 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