Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 205907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:35:54+00:00 2026-05-11T17:35:54+00:00

We have this software that has a webservices component. Now, the administrator of this

  • 0

We have this software that has a webservices component.

Now, the administrator of this system has come to me, wanting to import data into the system by using the webservices component.

So, I went to read the documentation to try to figure this thing out and I am seeing things like this:


Click here to see what I’m talking about (this looks best in firefox, chrome, & safari)


That documentation gives examples of interacting with the system using HTTP verbs such as GET, POST, PUT, DELETE. But in my limited experience, I have never had to send neither an HTTP PUT nor a DELETE.

How do you do it? I have built HTML forms that have method="post" or method="get" and the request is sent to whatever is specified in the action attribute (action="someResource"). But I don’t really know what to do with this PUT thing.

If I had to guess, I would have to build an application that creates some sort of an HTTP Request object and set all the properties of it and somehow include the data I want to PUT to the RESOURCE (


I am trying to use REST terminology, which is something else is very new to me


). Then I would send the request using my programming language and blah blah blah. I am just speculating on this. Please offer up some assistance!

I thought that I was a web developer, since I know things like XHTML, CSS, JavaScript, etc. but it’s starting to look like I don’t know anything about the foundations of the web at all (HTTP).

EDIT

PS: I program mostly with .net. So, any examples in .net would be pretty awesome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:35:54+00:00Added an answer on May 11, 2026 at 5:35 pm

    Here’s a C# example using HttpWebRequest:

    using System;
    using System.IO;
    using System.Net;
    
    class Test
    {
            static void Main()
            {
                    string xml = "<xml>...</xml>";
                    byte[] arr = System.Text.Encoding.UTF8.GetBytes(xml);
                    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("http://localhost/");
                    request.Method = "PUT";
                    request.ContentType = "text/xml";
                    request.ContentLength = arr.Length;
                    Stream dataStream = request.GetRequestStream();
                    dataStream.Write(arr, 0, arr.Length);
                    dataStream.Close();
                    HttpWebResponse response = (HttpWebResponse)request.GetResponse();
                    string returnString = response.StatusCode.ToString();
                    Console.WriteLine(returnString);
            }
    }
    

    Update: there’s now an HttpClient class in System.Net.Http (available as a NuGet package) that makes this a bit easier:

    using System;
    using System.Net.Http;
    
    class Program
    {
        static void Main()
        {
            var client = new HttpClient();
            var content = new StringContent("<xml>...</xml>");
            var response = client.PutAsync("http://localhost/", content).Result;
            Console.WriteLine(response.StatusCode);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this running software that is currently being used by about 400 people.
Let's say I have a MySQL table that is something like this: software table:
We have written a software package for a particular niche industry. This package has
I have a piece of mature geospatial software that has recently had areas rewritten
I have a legacy piece of software that has a single manager which controls
I've a question for you. We have built a software that has a single
We have a 3rd Party Piece of software that I'm wanting to apply some
I have a piece of software that has worked fine on many machines, althoughon
I have found a legacy software that we're using that has its launch properties
I have a software project that has the following structure. - Library A -

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.