?
Solved

Posting xml to a website that uses a CGI script

Posted on 2006-11-13
4
Medium Priority
?
353 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
2 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 1500 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

850 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