locked
Generic Handler for POST requests; Parser? RRS feed

  • Question

  • User1683316206 posted

    Hey All,

    This is the first time I've worked with generic handlers and I'm struggling to figure out how to parse a POST to my handlers url. The handler seems to work however the data in the HttpContext.Request.InputStream is quite crazy. A la


    Received: from web50212.mail.re2.yahoo.com ([206.190.39.176] helo=web50212.mail.re2.yahoo.com) by coilette.notdot.net with _________________ Thu, 05 Nov 2009 20:38:48 +0000 Received: (qmail 96596 invoked by uid 60001); 5 Nov 2009 20:38:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1257453528; bh=F7KuGgNGoWv1EBjlm4N8bsgEW7pdOIEnqXFWvX/cxwo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=k/2jyTpQr316qX1oW3Odzj+KtJiECqQ19l3rlEgIXxylxLbleLTEaIgbb/7QEB7G+/4St/J+bShkVj6KjIDHbA7b1+00xbw4PGuN+hAmPHZUcvDjsBx3jchnp05G4TqE61yaGNd2PMI4POjhxxukNZEQ48XK5GH2sZXgSdaDg30= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=uKZ7OA+tuxnowGsPfpBcJ5XW0CxUCW/5zv5FzqAM0d9oIPFbfx1JNzy03+4qCoNYN+SCQWv/NdS/FvWn6v4kwGQ/B3z0d6uKlBh4/HLfsXZJGzjvxZ+dRREYhdDYZu+NVw43jW0KQ3lzO35kayjnPi9uRBBV8jyoPqFMrvKFqSM=; Message-ID: <283161.96573.qm@web50212.mail.re2.yahoo.com> X-YMail-OSG: 5OKDpn0VM1npizZ7Sb5i2Dtt.jCW5SvER0qigwbE3kvbkOtNRjgbyETKjxgguyJsAAhhPDK3ty.ji0y9D1RlBMPqL5JXKxPc1FqE9bu0dcKIgGfUb4TMdDSOFml921PUIflMN.N80Imn4xQZu82co4SbUnanx4MfkKnVxqoHY8qrsgBWzU7SIWBRN.pQ2VEHSOzKks17nclOC0nJLnj6CeCNuYyhdoKgGDmCrPNsAJ6t2hnyH_ngVExU7VdvIxEl.XxZdL853HJ26Mm_pnREebOkF_rgPhPbTirU7zBOYlj3O7h4Teb09ePsg2TxnhLsQ6STn0ALLLQ5EWGsou0JrrOtLYGzyRf_q16HAxaH_BQkD__WTZVPYoSaMbh5N1jDyC4fhXEOAGm0MWCGwqZCuHIdkDNFU.OgZVWruD5RSclmtRoD.7_6AjM3B7_Q3Zkc Received: from [199.230.203.254] by web50212.mail.re2.yahoo.com via HTTP; Thu, 05 Nov 2009 12:38:47 PST X-Mailer: YahooMailClassic/7.0.14 YahooMailWebService/0.7.361.4 Date: Thu, 5 Nov 2009 12:38:47 -0800 (PST) From: Luke Doolittle <ldoolitt@yahoo.com> Subject: some subjectg To: nutrineer@smtp2web.com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-272238345-1257453527=:96573" --0-.........


    Is there some library that exists to parse this into sensible text?


    Luke

    Thursday, November 5, 2009 4:40 PM

All replies

  • User1566012831 posted

    Normally, you would let the runtime parse the POST response for you.

    For example, you can look in context.Request["key"] for the value of incoming POST forms values.


    Sunday, November 15, 2009 1:34 AM