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 396233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:31:55+00:00 2026-05-12T16:31:55+00:00

Reading the documentation page of BugTracker.NET BugTracker.NET API Documentation I realized that I need

  • 0

Reading the documentation page of BugTracker.NET
BugTracker.NET API Documentation
I realized that I need to use GET or POST which, I have to admit, I’m not very good at. I was wondering:

  • Is there a library that could be used to easily submit bugs to BugTracker.NET from a C# application (or VB.NET) ?
    Or,
  • If there’s no library. How can use GET or POST to submit bugs to BugTracker.NET ?
  • 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-12T16:31:56+00:00Added an answer on May 12, 2026 at 4:31 pm

    Thank you all for your answers. Using your answers and other resources on the web, I’ve put together a method for submitting a new bug to BugTracker.NET
    The method returns a boolean value indicating success or failure and it displays a message to the user with the status.
    This behavior could be changed to match your needs.
    The method uses POST method to submit bugs which helps to submit any long text in the comment (I’ve tried to submit the content of a log file in the comments and it worked).

    Here’s the code:

    public bool SubmitBugToBugTracker(string serverName,
                                            bool useProxy,
                                            string proxyHost,
                                            int proxyPort,
                                            string userName,
                                            string password,
                                            string description,
                                            string comment,
                                            int projectId)
        {
            if (!serverName.EndsWith(@"/"))
            {
                serverName += @"/";
            }
            string requestUrl = serverName + "insert_bug.aspx";
            string requestMethod = "POST";
            string requestContentType = "application/x-www-form-urlencoded";
            string requestParameters = "username=" + userName
                                      + "&password=" + password
                                      + "&short_desc=" + description
                                      + "&comment=" + comment
                                      + "&projectid=" + projectId;
            // POST parameters (postvars)
            byte[] buffer = Encoding.ASCII.GetBytes(requestParameters);
            // Initialisation
            HttpWebRequest WebReq = (HttpWebRequest)WebRequest.Create(requestUrl);
            // Add proxy info if used.
            if (useProxy)
            {
                WebReq.Proxy = new WebProxy(proxyHost, proxyPort);
            }
    
            // Method is POST
            WebReq.Method = requestMethod;
            // ContentType, for the postvars.
            WebReq.ContentType = requestContentType;
            // Length of the buffer (postvars) is used as contentlength.
            WebReq.ContentLength = buffer.Length;
            // Open a stream for writing the postvars
            Stream PostData = WebReq.GetRequestStream();
            //Now we write, and afterwards, we close. Closing is always important!
            PostData.Write(buffer, 0, buffer.Length);
            PostData.Close();
            // Get the response handle, we have no true response yet!
            HttpWebResponse WebResp = (HttpWebResponse)WebReq.GetResponse();
            // Read the response (the string)
            Stream Answer = WebResp.GetResponseStream();
            StreamReader _Answer = new StreamReader(Answer);
            string responseStream = _Answer.ReadToEnd();
    
            // Find out if bug submission was successfull.
            if (responseStream.StartsWith("OK:"))
            {
                MessageBox.Show("Bug submitted successfully.");
                return true;
            }
            else if (responseStream.StartsWith("ERROR:"))
            {
                MessageBox.Show("Error occured. Bug hasn't been submitted.\nError Message: " + responseStream);
                return false;
            }
            else
            {
                MessageBox.Show("Error occured. Bug hasn't been submitted.\nError Message: " + responseStream);
                return false;
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 195k
  • Answers 195k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There is an ordered set (possible new link) recipe for… May 12, 2026 at 7:01 pm
  • Editorial Team
    Editorial Team added an answer As far as I'm aware, Javascript (at least as it… May 12, 2026 at 7:01 pm
  • Editorial Team
    Editorial Team added an answer eh , another question.. This is better suited for serverfault,… May 12, 2026 at 7:01 pm

Related Questions

The basic idea of a masterpage is simple -- you have a block of
So I have been looking at Google Maps and they have the feature of
I'm new to the MVC pattern but have been trying to grasp it, for
I want to use the FTP task in ant, and I have found the
I recently was making a change to to our codebase from float to long

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.