Re: XMLHttpRequest: POST with Data

Discussion in 'ASP General' started by Mike Winter, Aug 26, 2012.

  1. Mike Winter

    Mike Winter Guest

    As has been indicated, you're looking in the wrong place for the data.
    The query string (.QueryString) is part of the URL used to locate the
    receiving page, hence when you modify the URL in the second example, the
    information is available.

    The POST method adds data as a "payload" in the request body sent to the
    server, and this is accessed differently through the Request.Form

    If you're new to authoring server-side and you haven't already, I'd
    suggest that you read RFC 2616, Hypertext Transfer Protocol
    (HTTP/1.1)[2] to be sure you behave properly (especially when sending
    data from the server). You might also want to review Microsoft's
    overview of processing user input in ASP[3]. Though it refers to forms
    throughout, that's irrelevant in this case: the transmission method (GET
    vs. POST) is key.

    [snipped encoding question]

    Hope that helps,

    Copied and follow-ups set to microsoft.public.inetserver.asp.general
    (NB. I don't read this board as I don't use ASP)

    [1] <>
    [2] <>
    [3] <>
    Mike Winter, Aug 26, 2012
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.