Click here to Skip to main content
15,888,112 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Questions about javascript... Pin
Daniel Pfeffer3-Sep-20 1:01
professionalDaniel Pfeffer3-Sep-20 1:01 
AnswerRe: Questions about javascript... Pin
megaadam3-Sep-20 4:26
professionalmegaadam3-Sep-20 4:26 
GeneralRe: Questions about javascript... Pin
Randor 3-Sep-20 4:39
professional Randor 3-Sep-20 4:39 
GeneralRe: Questions about javascript... Pin
Daniel Pfeffer3-Sep-20 6:54
professionalDaniel Pfeffer3-Sep-20 6:54 
GeneralRe: Questions about javascript... Pin
Rage4-Sep-20 5:32
professionalRage4-Sep-20 5:32 
GeneralRe: Questions about javascript...heekheek Pin
BillWoodruff3-Sep-20 20:30
professionalBillWoodruff3-Sep-20 20:30 
GeneralLarge javascript files Pin
ZurdoDev2-Sep-20 7:44
professionalZurdoDev2-Sep-20 7:44 
GeneralRe: Large javascript files Pin
raddevus2-Sep-20 8:18
mvaraddevus2-Sep-20 8:18 
ZurdoDev wrote:
JS file and it is over 130,000 lines long

So ridiculous!! For all those people who don't understand OOP. This is what OOP was for.

Do you mean something like the following?
from: How to: Send data by using the WebRequest class | Microsoft Docs[^]

C#
using System;
using System.IO;
using System.Net;
using System.Text;

namespace Examples.System.Net
{
    public class WebRequestPostExample
    {
        public static void Main()
        {
            // Create a request using a URL that can receive a post.
            WebRequest request = WebRequest.Create("http://www.contoso.com/PostAccepter.aspx ");
            // Set the Method property of the request to POST.
            request.Method = "POST";

            // Create POST data and convert it to a byte array.
            string postData = "This is a test that posts this string to a Web server.";
            byte[] byteArray = Encoding.UTF8.GetBytes(postData);

            // Set the ContentType property of the WebRequest.
            request.ContentType = "application/x-www-form-urlencoded";
            // Set the ContentLength property of the WebRequest.
            request.ContentLength = byteArray.Length;

            // Get the request stream.
            Stream dataStream = request.GetRequestStream();
            // Write the data to the request stream.
            dataStream.Write(byteArray, 0, byteArray.Length);
            // Close the Stream object.
            dataStream.Close();

            // Get the response.
            WebResponse response = request.GetResponse();
            // Display the status.
            Console.WriteLine(((HttpWebResponse)response).StatusDescription);

            // Get the stream containing content returned by the server.
            // The using block ensures the stream is automatically closed.
            using (dataStream = response.GetResponseStream())
            {
                // Open the stream using a StreamReader for easy access.
                StreamReader reader = new StreamReader(dataStream);
                // Read the content.
                string responseFromServer = reader.ReadToEnd();
                // Display the content.
                Console.WriteLine(responseFromServer);
            }

            // Close the response.
            response.Close();
        }
    }
}

GeneralRe: Large javascript files Pin
ZurdoDev2-Sep-20 8:39
professionalZurdoDev2-Sep-20 8:39 
GeneralRe: Large javascript files Pin
F-ES Sitecore2-Sep-20 8:54
professionalF-ES Sitecore2-Sep-20 8:54 
GeneralRe: Large javascript files Pin
raddevus2-Sep-20 9:20
mvaraddevus2-Sep-20 9:20 
GeneralRe: Large javascript files Pin
Matthew Dennis2-Sep-20 8:43
sysadminMatthew Dennis2-Sep-20 8:43 
GeneralRe: Large javascript files Pin
OriginalGriff2-Sep-20 8:59
mveOriginalGriff2-Sep-20 8:59 
GeneralRe: Large javascript files Pin
F-ES Sitecore2-Sep-20 8:46
professionalF-ES Sitecore2-Sep-20 8:46 
GeneralRe: Large javascript files Pin
ZurdoDev2-Sep-20 9:07
professionalZurdoDev2-Sep-20 9:07 
GeneralRe: Large javascript files PinPopular
W Balboos, GHB2-Sep-20 8:57
W Balboos, GHB2-Sep-20 8:57 
GeneralRe: Large javascript files Pin
ZurdoDev2-Sep-20 9:11
professionalZurdoDev2-Sep-20 9:11 
GeneralRe: Large javascript files Pin
W Balboos, GHB2-Sep-20 9:32
W Balboos, GHB2-Sep-20 9:32 
GeneralRe: Large javascript files Pin
ZurdoDev2-Sep-20 9:53
professionalZurdoDev2-Sep-20 9:53 
GeneralRe: Large javascript files Pin
Gerry Schmitz2-Sep-20 9:15
mveGerry Schmitz2-Sep-20 9:15 
GeneralRe: Large javascript files Pin
ZurdoDev2-Sep-20 9:20
professionalZurdoDev2-Sep-20 9:20 
GeneralThought of the Day Pin
OriginalGriff2-Sep-20 5:11
mveOriginalGriff2-Sep-20 5:11 
GeneralRe: Thought of the Day Pin
Matthew Dennis2-Sep-20 5:14
sysadminMatthew Dennis2-Sep-20 5:14 
GeneralRe: Thought of the Day Pin
Mike Hankey2-Sep-20 5:18
mveMike Hankey2-Sep-20 5:18 
QuestionRe: Thought of the Day Pin
megaadam2-Sep-20 5:27
professionalmegaadam2-Sep-20 5:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.