Solved

Posting xml to a website that uses a CGI script

Posted on 2006-11-13
4
345 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
Comment Utility
Hmm. Perhaps the wrong subject area for this one Doug?
0
 
LVL 15

Accepted Solution

by:
ozymandias earned 500 total points
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 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

16 Experts available now in Live!

Get 1:1 Help Now