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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:25:05+00:00 2026-06-17T12:25:05+00:00

The response back will be posted directly to the application URL. Once posted, the

  • 0

“The response back will be posted directly to the application URL. Once posted, the application will need to take the status code and message ID from that information to determine the result of the SMS delivery.”

Basically I send an http request to an API to send a text message and that website further sends delivery status to another URL I have given them . Now I want to receive the data sent to my application using http how can I do it in asp.net

Edited Part

 NameValueCollection pColl = Request.Params;

    // Iterate through the collection and add
    // each key to the string variable.
    for (int i = 0; i <= pColl.Count - 1; i++)
    {
        paramInfo += "Key: " + pColl.GetKey(i) + "<br />";



        // Create a string array that contains
        // the values associated with each key.
        string[]pValues = pColl.GetValues(i);


        // Iterate through the array and add
        // each value to the string variable.
        for (int j = 0; j <= pValues.Length - 1; j++)
        {

            paramInfo += "Value:" + pValues[j] + "<br /><br />";

        }
    }
Log(add, paramInfo);

Above code generates following response for me :

Key: result<br />Value:-5<br /><br />Key: transactionid<br        />Value:2a8b0559d2a6d96ff2250c5339356293<br /><br />Key: notification<br />Value:msgresult<br /><br />Key: messageid<br />Value:My test message.<br /><br />Key: botkey<br />Value:123456<br /><br />Key: ALL_HTTP<br />Value:HTTP_CONNECTION:keep-alive
HTTP_CONTENT_LENGTH:120
HTTP_CONTENT_TYPE:application/x-www-form-urlencoded
HTTP_ACCEPT:text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
HTTP_HOST:abcdef
HTTP_USER_AGENT:Java/1.6.0_21
HTTP_TRANSACTIONID:2a8b0559d2a6d96ff2250c5339356293
HTTP_MESSAGEID:95a8e9c37b9e449fe47e7d3acdd6f6e5
br /><br />Key: ALL_RAW<br />

And what I need from whole response if the value of Key : result which is -5

  • 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-06-17T12:25:06+00:00Added an answer on June 17, 2026 at 12:25 pm

    What your service provider is saying is that, they will call your page sending data(most probably POST) to your page.

    Asp.net pages are by default called over http.

    You can receive the parameters as follows:

    protected void Page_Load(object sender, EventArgs e)
    {
        var param1 = Request.Form["paramName"];
    }
    

    I am sure your service provider must have supplied the parameter names they will be posting.

    Edit:
    Your edit makes it a lot easier.
    The result that you require is already part of Request.Params.

    you can get it using

    var result = Request.Params["result"];
    

    Or even simpler

    var result = Request["result"];
    

    Note: Using Request.Params is expensive on the first call as it builds the NameValueCollection by adding parameters from the QueryString, Form, Cookie and ServerVariables.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The user 'Chacha102' posted the following code in response to this question back in
I am maintaining this servlet that has a HttpServletResponse response that replies back to
I've got XML coming back from an Ajax.Request in Ajax.Response.responseXML . My XML actually
`I am working with an API that sends back an XML response upon request.
I need to find a service that will allow me to send and receive
I am getting json data as a response back from the server. I want
Below is the code so far that I am working on, It will be
I have written some code in Java that will decode a SHOUTcast stream and
I need to build a website and an application that communicate together, in both
Is there a way to get the response back from a extremely basic RestKit

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.