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

  • Home
  • SEARCH
  • 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 33115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T13:52:11+00:00 2026-05-10T13:52:11+00:00

I am doing an e-commerce solution in ASP.NET which uses PayPal’s Website Payments Standard

  • 0

I am doing an e-commerce solution in ASP.NET which uses PayPal’s Website Payments Standard service. Together with that I use a service they offer (Payment Data Transfer) that sends you back order information after a user has completed a payment. The final thing I need to do is to parse the POST request from them and persist the info in it. The HTTP request’s content is in this form :

SUCCESS
first_name=Jane+Doe
last_name=Smith
payment_status=Completed
payer_email=janedoesmith%40hotmail.com
payment_gross=3.99
mc_currency=USD
custom=For+the+purchase+of+the+rare+book+Green+Eggs+%26+Ham

Basically I want to parse this information and do something meaningful, like send it through e-mail or save it in DB. My question is what is the right approach to do parsing raw HTTP data in ASP.NET, not how the parsing itself is done.

  • 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. 2026-05-10T13:52:11+00:00Added an answer on May 10, 2026 at 1:52 pm

    Something like this placed in your onload event.

    if (Request.RequestType == 'POST') {     using (StreamReader sr = new StreamReader(Request.InputStream))     {         if (sr.ReadLine() == 'SUCCESS')         {             /* Do your parsing here */         }     } } 

    Mind you that they might want some special sort of response to (ie; not your full webpage), so you might do something like this after you’re done parsing.

    Response.Clear(); Response.ContentType = 'text/plain'; Response.Write('Thanks!'); Response.End(); 

    Update: this should be done in a Generic Handler (.ashx) file in order to avoid a great deal of overhead from the page model. Check out this article for more information about .ashx files

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

Sidebar

Related Questions

I'm working on a big ASP.NET MVC site, a commerce service sold to customers.
I have an ASP.NET 3.5 e-commerce site that has an admin section. I want
I have a web solution that contains 5 class libraries and one asp.net web
I am coding a E-commerce website/admin interface for a client. They are doing some
I'm doing an e-commerce website for a client who sells lingerie, I've written up
I am currently creating an e-commerce site using C# ASP.NET MVC and have just
We have a fairly high volume ASP.Net site written in c# using MS commerce
I'm working on adding some analytics code into our e-commerce website. What I'm doing
I am writing a T-SQL Query, I am developing the e-commerce website, in that
I am following ScottGU tutorial : A Simple E-Commerce Storefront Application http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx I can't

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.