GET Message format HTTP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dodger

    #1

    GET Message format HTTP

    Apologies if the is the wrong NG.

    But I have trapped a GET issued by a webpage on a button press and I would
    like to issue the GET programatically as-and-when I wish.

    I wondered what the text before the get text signifies? I imagine they are
    variable names and parameter values.

    Is this correct?

    Would someone tell me how I can go about decoding them (or give a
    reference(s)), so I can find out what I should actually send in the GET?

    Here is a sample of format of the instruction I have trapped.

    Thanks

    AlphaIDs=&origi n=placeAlpha&Se lectionIDs=2093 0%7C&BidTypes=B %7C&Part=10%7C& N
    ewPart=&Effort= 2%7C&NewEffort= &Modes=&SubEven tIds=&MktType=O &ei=2339117&iid =
    Standard&fa=pb& iCard=&placeAlp ha_guessLayMake Owe=OweGET
    /fishing/LoadMDA.do?mi=2 339117 HTTP/1.0
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
    application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint,
    */*
    Accept-Language: en-us
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0
    Host: WWW.DUMMY_SITE.COM







  • McKirahan

    #2
    Re: GET Message format HTTP

    "Dodger" <not@home.com > wrote in message
    news:41cb921b$0 $19158$cc9e4d1f @news-text.dial.pipex .com...[color=blue]
    > Apologies if the is the wrong NG.
    >
    > But I have trapped a GET issued by a webpage on a button press and I would
    > like to issue the GET programatically as-and-when I wish.
    >
    > I wondered what the text before the get text signifies? I imagine they are
    > variable names and parameter values.
    >
    > Is this correct?
    >
    > Would someone tell me how I can go about decoding them (or give a
    > reference(s)), so I can find out what I should actually send in the GET?
    >
    > Here is a sample of format of the instruction I have trapped.
    >
    > Thanks
    >
    >[/color]
    AlphaIDs=&origi n=placeAlpha&Se lectionIDs=2093 0%7C&BidTypes=B %7C&Part=10%7C& N[color=blue]
    >[/color]
    ewPart=&Effort= 2%7C&NewEffort= &Modes=&SubEven tIds=&MktType=O &ei=2339117&iid =[color=blue]
    > Standard&fa=pb& iCard=&placeAlp ha_guessLayMake Owe=OweGET
    > /fishing/LoadMDA.do?mi=2 339117 HTTP/1.0
    > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
    > application/vnd.ms-excel, application/msword,[/color]
    application/vnd.ms-powerpoint,[color=blue]
    > */*
    > Accept-Language: en-us
    > Accept-Encoding: gzip, deflate
    > User-Agent: Mozilla/4.0
    > Host: WWW.DUMMY_SITE.COM
    >[/color]

    How did you trap the above?

    It looks like that the relevant part is
    /fishing/LoadMDA.do?mi=2 339117

    Thus you could do:
    location.href = "/fishing/LoadMDA.do?mi=2 339117";
    whenever you wanted.

    I'm not sure what the first several lines are for.
    They seem like name/value pairs (some with no value):

    AlphaIDs=
    &origin=placeAl pha
    &SelectionIDs=2 0930%7C
    &BidTypes=B% 7C
    &Part=10%7C
    &NewPart=
    &Effort=2%7C
    &NewEffort=
    &Modes=
    &SubEventIds =
    &MktType=O
    &ei=2339117
    &iid=Standar d
    &fa=pb
    &iCard=
    &placeAlpha_gue ssLayMakeOwe=Ow eGET



    Comment

    • Dodger

      #3
      Re: GET Message format HTTP


      "McKirahan" <News@McKirahan .com> wrote in message
      news:WhNyd.2810 10$HA.74380@att bi_s01...[color=blue]
      > "Dodger" <not@home.com > wrote in message
      > news:41cb921b$0 $19158$cc9e4d1f @news-text.dial.pipex .com...[color=green]
      > > Apologies if the is the wrong NG.
      > >
      > > But I have trapped a GET issued by a webpage on a button press and I[/color][/color]
      would[color=blue][color=green]
      > > like to issue the GET programatically as-and-when I wish.
      > >
      > > I wondered what the text before the get text signifies? I imagine they[/color][/color]
      are[color=blue][color=green]
      > > variable names and parameter values.
      > >
      > > Is this correct?
      > >
      > > Would someone tell me how I can go about decoding them (or give a
      > > reference(s)), so I can find out what I should actually send in the GET?
      > >
      > > Here is a sample of format of the instruction I have trapped.
      > >
      > > Thanks
      > >
      > >[/color]
      >[/color]
      AlphaIDs=&origi n=placeAlpha&Se lectionIDs=2093 0%7C&BidTypes=B %7C&Part=10%7C& N[color=blue][color=green]
      > >[/color]
      >[/color]
      ewPart=&Effort= 2%7C&NewEffort= &Modes=&SubEven tIds=&MktType=O &ei=2339117&iid =[color=blue][color=green]
      > > Standard&fa=pb& iCard=&placeAlp ha_guessLayMake Owe=OweGET
      > > /fishing/LoadMDA.do?mi=2 339117 HTTP/1.0
      > > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
      > > application/vnd.ms-excel, application/msword,[/color]
      > application/vnd.ms-powerpoint,[color=green]
      > > */*
      > > Accept-Language: en-us
      > > Accept-Encoding: gzip, deflate
      > > User-Agent: Mozilla/4.0
      > > Host: WWW.DUMMY_SITE.COM
      > >[/color]
      >[/color]

      Hi,

      Thanks for your reply,
      [color=blue]
      > How did you trap the above?[/color]

      Using an MFC prog from codeproject.com using a webbrowser control - not in
      javascript which I don't know much about unfortunately;(
      [color=blue]
      > It looks like that the relevant part is
      > /fishing/LoadMDA.do?mi=2 339117
      >
      > Thus you could do:
      > location.href = "/fishing/LoadMDA.do?mi=2 339117";
      > whenever you wanted.[/color]

      Yes I have successfully done this on "normal" GET's ie without the "name
      value" pairs you describe.
      [color=blue]
      > I'm not sure what the first several lines are for.
      > They seem like name/value pairs (some with no value):
      >
      > AlphaIDs=
      > &origin=placeAl pha
      > &SelectionIDs=2 0930%7C
      > &BidTypes=B% 7C
      > &Part=10%7C
      > &NewPart=
      > &Effort=2%7C
      > &NewEffort=
      > &Modes=
      > &SubEventIds =
      > &MktType=O
      > &ei=2339117
      > &iid=Standar d
      > &fa=pb
      > &iCard=
      > &placeAlpha_gue ssLayMakeOwe=Ow eGET[/color]

      But I know what 20930 (var3) and 10 (var 5) and 2 (var 7) 2339117 (var 12)
      are, as I am updating the website (database) with these values.

      What I am confused about is what relationship the "name-value" pairs as you
      have identified have with the GET. Are they just sent "as-is" literally or
      will the web page transform them somehow?

      If they are "hard-coded" can I then just prefix them to the GET string?

      What does the website server (HTTP protocol) recognise tham as being? Are
      they also parameters? They should be as, because I said I am updating the
      database with these values. I haven't found a description of what they
      signify in any HTTP protocol docs I have found.

      I know the "?" after the GET identifies parameters, but I repeat it makes
      sense if these pairs are also parameters to the GET.

      What does the "%7C" represent which appends many of the variables?
      I wonder, could it be unicode for something which my trapping has
      transformed? They do append all my input data (I know what var 12 is but I
      don't actually input it and it has the '%7C' missing).

      I could try trial and error, but it is a "live" database and I don't want to
      screw up my account details!!!

      Thanks again.



      Comment

      • McKirahan

        #4
        Re: GET Message format HTTP

        "Dodger" <not@home.com > wrote in message
        news:41cba83c$0 $16575$cc9e4d1f @news-text.dial.pipex .com...[color=blue]
        >
        > "McKirahan" <News@McKirahan .com> wrote in message
        > news:WhNyd.2810 10$HA.74380@att bi_s01...[color=green]
        > > "Dodger" <not@home.com > wrote in message
        > > news:41cb921b$0 $19158$cc9e4d1f @news-text.dial.pipex .com...[color=darkred]
        > > > Apologies if the is the wrong NG.
        > > >
        > > > But I have trapped a GET issued by a webpage on a button press and I[/color][/color]
        > would[color=green][color=darkred]
        > > > like to issue the GET programatically as-and-when I wish.
        > > >
        > > > I wondered what the text before the get text signifies? I imagine they[/color][/color]
        > are[color=green][color=darkred]
        > > > variable names and parameter values.
        > > >
        > > > Is this correct?
        > > >
        > > > Would someone tell me how I can go about decoding them (or give a
        > > > reference(s)), so I can find out what I should actually send in the[/color][/color][/color]
        GET?[color=blue][color=green][color=darkred]
        > > >
        > > > Here is a sample of format of the instruction I have trapped.
        > > >
        > > > Thanks
        > > >
        > > >[/color]
        > >[/color]
        >[/color]
        AlphaIDs=&origi n=placeAlpha&Se lectionIDs=2093 0%7C&BidTypes=B %7C&Part=10%7C& N[color=blue][color=green][color=darkred]
        > > >[/color]
        > >[/color]
        >[/color]
        ewPart=&Effort= 2%7C&NewEffort= &Modes=&SubEven tIds=&MktType=O &ei=2339117&iid =[color=blue][color=green][color=darkred]
        > > > Standard&fa=pb& iCard=&placeAlp ha_guessLayMake Owe=OweGET
        > > > /fishing/LoadMDA.do?mi=2 339117 HTTP/1.0
        > > > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
        > > > application/vnd.ms-excel, application/msword,[/color]
        > > application/vnd.ms-powerpoint,[color=darkred]
        > > > */*
        > > > Accept-Language: en-us
        > > > Accept-Encoding: gzip, deflate
        > > > User-Agent: Mozilla/4.0
        > > > Host: WWW.DUMMY_SITE.COM
        > > >[/color]
        > >[/color]
        >
        > Hi,
        >
        > Thanks for your reply,
        >[color=green]
        > > How did you trap the above?[/color]
        >
        > Using an MFC prog from codeproject.com using a webbrowser control - not in
        > javascript which I don't know much about unfortunately;(
        >[color=green]
        > > It looks like that the relevant part is
        > > /fishing/LoadMDA.do?mi=2 339117
        > >
        > > Thus you could do:
        > > location.href = "/fishing/LoadMDA.do?mi=2 339117";
        > > whenever you wanted.[/color]
        >
        > Yes I have successfully done this on "normal" GET's ie without the "name[/color]
        [color=blue]
        > value" pairs you describe.
        >[color=green]
        > > I'm not sure what the first several lines are for.
        > > They seem like name/value pairs (some with no value):
        > >
        > > AlphaIDs=
        > > &origin=placeAl pha
        > > &SelectionIDs=2 0930%7C
        > > &BidTypes=B% 7C
        > > &Part=10%7C
        > > &NewPart=
        > > &Effort=2%7C
        > > &NewEffort=
        > > &Modes=
        > > &SubEventIds =
        > > &MktType=O
        > > &ei=2339117
        > > &iid=Standar d
        > > &fa=pb
        > > &iCard=
        > > &placeAlpha_gue ssLayMakeOwe=Ow eGET[/color]
        >
        > But I know what 20930 (var3) and 10 (var 5) and 2 (var 7) 2339117 (var 12)
        > are, as I am updating the website (database) with these values.
        >
        > What I am confused about is what relationship the "name-value" pairs as[/color]
        you[color=blue]
        > have identified have with the GET. Are they just sent "as-is" literally or
        > will the web page transform them somehow?[/color]

        A "get" passes parameters via the QueryString; that which is appended to a
        URL following "?".

        Multiple parameters are separated by "&".

        Parameters are usually (but not always) name=value pairs.
        [color=blue]
        > If they are "hard-coded" can I then just prefix them to the GET string?[/color]

        You would append them. Perhaps the following will work:

        location.href = "/fishing/LoadMDA.do
        ?mi=2339117
        &AlphaIDs=
        &origin=placeAl pha
        &SelectionIDs=2 0930%7C
        &BidTypes=B% 7C
        &Part=10%7C
        &NewPart=
        &Effort=2%7C
        &NewEffort=
        &Modes=
        &SubEventIds =
        &MktType=O
        &ei=2339117
        &iid=Standar d
        &fa=pb
        &iCard=
        &placeAlpha_gue ssLayMakeOwe=Ow eGET";

        just make it one long string.
        [color=blue]
        > What does the website server (HTTP protocol) recognise tham as being? Are
        > they also parameters? They should be as, because I said I am updating the
        > database with these values. I haven't found a description of what they
        > signify in any HTTP protocol docs I have found.
        >
        > I know the "?" after the GET identifies parameters, but I repeat it makes
        > sense if these pairs are also parameters to the GET.
        >
        > What does the "%7C" represent which appends many of the variables?
        > I wonder, could it be unicode for something which my trapping has
        > transformed? They do append all my input data (I know what var 12 is but I
        > don't actually input it and it has the '%7C' missing).[/color]

        The "%7C" is a hexidecimal represenattion of a character (7 * 16 + 12 = 124
        = |)

        Type the following in your browser's address bar (IE only?):
        javascript:aler t(escape("|") + " = " + unescape("%7C") );
        then press Enter.
        [color=blue]
        >
        > I could try trial and error, but it is a "live" database and I don't want[/color]
        to[color=blue]
        > screw up my account details!!![/color]

        Better to set up a test database, after all you are testing.
        [color=blue]
        >
        > Thanks again.
        >
        >
        >[/color]


        Comment

        • Dodger

          #5
          Re: GET Message format HTTP


          "McKirahan" <News@McKirahan .com> wrote in message
          news:LkOyd.8038 48$8_6.715243@a ttbi_s04...[color=blue]
          > "Dodger" <not@home.com > wrote in message
          > news:41cba83c$0 $16575$cc9e4d1f @news-text.dial.pipex .com...[color=green]
          > >
          > > "McKirahan" <News@McKirahan .com> wrote in message
          > > news:WhNyd.2810 10$HA.74380@att bi_s01...[color=darkred]
          > > > "Dodger" <not@home.com > wrote in message
          > > > news:41cb921b$0 $19158$cc9e4d1f @news-text.dial.pipex .com...
          > > > > Apologies if the is the wrong NG.
          > > > >
          > > > > But I have trapped a GET issued by a webpage on a button press and I[/color]
          > > would[color=darkred]
          > > > > like to issue the GET programatically as-and-when I wish.
          > > > >
          > > > > I wondered what the text before the get text signifies? I imagine[/color][/color][/color]
          they[color=blue][color=green]
          > > are[color=darkred]
          > > > > variable names and parameter values.
          > > > >
          > > > > Is this correct?
          > > > >
          > > > > Would someone tell me how I can go about decoding them (or give a
          > > > > reference(s)), so I can find out what I should actually send in the[/color][/color]
          > GET?[color=green][color=darkred]
          > > > >
          > > > > Here is a sample of format of the instruction I have trapped.
          > > > >
          > > > > Thanks
          > > > >
          > > > >
          > > >[/color]
          > >[/color]
          >[/color]
          AlphaIDs=&origi n=placeAlpha&Se lectionIDs=2093 0%7C&BidTypes=B %7C&Part=10%7C& N[color=blue][color=green][color=darkred]
          > > > >
          > > >[/color]
          > >[/color]
          >[/color]
          ewPart=&Effort= 2%7C&NewEffort= &Modes=&SubEven tIds=&MktType=O &ei=2339117&iid =[color=blue][color=green][color=darkred]
          > > > > Standard&fa=pb& iCard=&placeAlp ha_guessLayMake Owe=OweGET
          > > > > /fishing/LoadMDA.do?mi=2 339117 HTTP/1.0
          > > > > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
          > > > > application/vnd.ms-excel, application/msword,
          > > > application/vnd.ms-powerpoint,
          > > > > */*
          > > > > Accept-Language: en-us
          > > > > Accept-Encoding: gzip, deflate
          > > > > User-Agent: Mozilla/4.0
          > > > > Host: WWW.DUMMY_SITE.COM
          > > > >
          > > >[/color]
          > >
          > > Hi,
          > >
          > > Thanks for your reply,
          > >[color=darkred]
          > > > How did you trap the above?[/color]
          > >
          > > Using an MFC prog from codeproject.com using a webbrowser control - not[/color][/color]
          in[color=blue][color=green]
          > > javascript which I don't know much about unfortunately;(
          > >[color=darkred]
          > > > It looks like that the relevant part is
          > > > /fishing/LoadMDA.do?mi=2 339117
          > > >
          > > > Thus you could do:
          > > > location.href = "/fishing/LoadMDA.do?mi=2 339117";
          > > > whenever you wanted.[/color]
          > >
          > > Yes I have successfully done this on "normal" GET's ie without the[/color][/color]
          "name[color=blue]
          >[color=green]
          > > value" pairs you describe.
          > >[color=darkred]
          > > > I'm not sure what the first several lines are for.
          > > > They seem like name/value pairs (some with no value):
          > > >
          > > > AlphaIDs=
          > > > &origin=placeAl pha
          > > > &SelectionIDs=2 0930%7C
          > > > &BidTypes=B% 7C
          > > > &Part=10%7C
          > > > &NewPart=
          > > > &Effort=2%7C
          > > > &NewEffort=
          > > > &Modes=
          > > > &SubEventIds =
          > > > &MktType=O
          > > > &ei=2339117
          > > > &iid=Standar d
          > > > &fa=pb
          > > > &iCard=
          > > > &placeAlpha_gue ssLayMakeOwe=Ow eGET[/color]
          > >
          > > But I know what 20930 (var3) and 10 (var 5) and 2 (var 7) 2339117 (var[/color][/color]
          12)[color=blue][color=green]
          > > are, as I am updating the website (database) with these values.
          > >
          > > What I am confused about is what relationship the "name-value" pairs as[/color]
          > you[color=green]
          > > have identified have with the GET. Are they just sent "as-is" literally[/color][/color]
          or[color=blue][color=green]
          > > will the web page transform them somehow?[/color]
          >
          > A "get" passes parameters via the QueryString; that which is appended to a
          > URL following "?".
          >
          > Multiple parameters are separated by "&".
          >
          > Parameters are usually (but not always) name=value pairs.
          >[color=green]
          > > If they are "hard-coded" can I then just prefix them to the GET string?[/color]
          >
          > You would append them. Perhaps the following will work:
          >
          > location.href = "/fishing/LoadMDA.do
          > ?mi=2339117
          > &AlphaIDs=
          > &origin=placeAl pha
          > &SelectionIDs=2 0930%7C
          > &BidTypes=B% 7C
          > &Part=10%7C
          > &NewPart=
          > &Effort=2%7C
          > &NewEffort=
          > &Modes=
          > &SubEventIds =
          > &MktType=O
          > &ei=2339117
          > &iid=Standar d
          > &fa=pb
          > &iCard=
          > &placeAlpha_gue ssLayMakeOwe=Ow eGET";[/color]

          But the GET I have trapped *prepends* rather than appends them.
          This is what is confusing me.
          Maybe I will just try and send the same hardcoded string and see what
          happens.


          [color=blue]
          > just make it one long string.
          >[color=green]
          > > What does the website server (HTTP protocol) recognise tham as being?[/color][/color]
          Are[color=blue][color=green]
          > > they also parameters? They should be as, because I said I am updating[/color][/color]
          the[color=blue][color=green]
          > > database with these values. I haven't found a description of what they
          > > signify in any HTTP protocol docs I have found.
          > >
          > > I know the "?" after the GET identifies parameters, but I repeat it[/color][/color]
          makes[color=blue][color=green]
          > > sense if these pairs are also parameters to the GET.
          > >
          > > What does the "%7C" represent which appends many of the variables?
          > > I wonder, could it be unicode for something which my trapping has
          > > transformed? They do append all my input data (I know what var 12 is but[/color][/color]
          I[color=blue][color=green]
          > > don't actually input it and it has the '%7C' missing).[/color]
          >
          > The "%7C" is a hexidecimal represenattion of a character (7 * 16 + 12 =[/color]
          124[color=blue]
          > = |)
          >
          > Type the following in your browser's address bar (IE only?):
          > javascript:aler t(escape("|") + " = " + unescape("%7C") );
          > then press Enter.
          >[color=green]
          > >
          > > I could try trial and error, but it is a "live" database and I don't[/color][/color]
          want[color=blue]
          > to[color=green]
          > > screw up my account details!!![/color]
          >
          > Better to set up a test database, after all you are testing.[/color]

          The live database has nothing to do with me. What would I be testing?
          I don't understand the format of the GET I have trapped - that is the
          problem.

          Thanks





          Comment

          • Michael Winter

            #6
            Re: GET Message format HTTP

            On Fri, 24 Dec 2004 03:50:50 -0000, Dodger <not@home.com > wrote:
            [color=blue]
            > Apologies if the is the wrong NG.[/color]

            It is, though I couldn't suggest an alternative.

            [snip]
            [color=blue]
            > AlphaIDs=&origi n=placeAlpha&Se lectionIDs=2093 0%7C&BidTypes=B %7C
            > &Part=10%7C&New Part=&Effort=2% 7C&NewEffort=&M odes=&SubEventI ds=
            > &MktType=O&ei=2 339117&iid=Stan dard&fa=pb&iCar d=
            > &placeAlpha_gue ssLayMakeOwe=Ow e[/color]

            I don't think this should be there at all. A GET request starts with the
            three octets, "GET". There is nothing before that. From RFC 2616 -
            Hypertext Transfer Protocol (HTTP/1.1):

            HTTP-message = Request | Response

            Request = Request-Line
            *(( general-header
            | request-header
            | entity-header ) CRLF)
            CRLF
            [ message-body ]

            Request-Line = Method SP Request-URI SP HTTP-Version CRLF

            Method = "OPTIONS"
            | "GET"
            | "HEAD"
            | "POST"
            | "PUT"
            | "DELETE"
            | "TRACE"
            | "CONNECT"
            | extension-method

            So as you can see, a HTTP request begins with "GET", followed by a URI,
            followed by the version information, which is this:
            [color=blue]
            > GET /fishing/LoadMDA.do?mi=2 339117 HTTP/1.0[/color]

            Are you sure you didn't get the tail-end of something else?

            [snip]

            By the way, will one of you two trim your quotations when you post in the
            other sub-thread. About 90% of it is text from previous posts.

            Mike

            --
            Michael Winter
            Replace ".invalid" with ".uk" to reply by e-mail.

            Comment

            • Dodger

              #7
              Re: GET Message format HTTP


              "Michael Winter" <M.Winter@bluey onder.co.invali d> wrote in message
              news:opsjipy7j9 x13kvk@atlantis ...[color=blue]
              > On Fri, 24 Dec 2004 03:50:50 -0000, Dodger <not@home.com > wrote:
              >[color=green]
              > > Apologies if the is the wrong NG.[/color]
              >
              > It is, though I couldn't suggest an alternative.
              >
              > [snip]
              >[color=green]
              > > AlphaIDs=&origi n=placeAlpha&Se lectionIDs=2093 0%7C&BidTypes=B %7C
              > > &Part=10%7C&New Part=&Effort=2% 7C&NewEffort=&M odes=&SubEventI ds=
              > > &MktType=O&ei=2 339117&iid=Stan dard&fa=pb&iCar d=
              > > &placeAlpha_gue ssLayMakeOwe=Ow e[/color]
              >
              > I don't think this should be there at all. A GET request starts with the
              > three octets, "GET". There is nothing before that. From RFC 2616 -
              > Hypertext Transfer Protocol (HTTP/1.1):
              >
              > HTTP-message = Request | Response
              >
              > Request = Request-Line
              > *(( general-header
              > | request-header
              > | entity-header ) CRLF)
              > CRLF
              > [ message-body ]
              >
              > Request-Line = Method SP Request-URI SP HTTP-Version CRLF
              >
              > Method = "OPTIONS"
              > | "GET"
              > | "HEAD"
              > | "POST"
              > | "PUT"
              > | "DELETE"
              > | "TRACE"
              > | "CONNECT"
              > | extension-method
              >
              > So as you can see, a HTTP request begins with "GET", followed by a URI,
              > followed by the version information, which is this:
              >[color=green]
              > > GET /fishing/LoadMDA.do?mi=2 339117 HTTP/1.0[/color]
              >
              > Are you sure you didn't get the tail-end of something else?
              >[/color]

              Well there is something funny going on :)

              I think I may have been getting confused with the previous POST command that
              was issued.
              That would make sense wouldn't it? As I am updating the database this should
              be done with a POST instead of a GET shouldn't it?

              Does the POST data string append the POST header?

              Heres *exactly* what I have in my log file

              POST /fishing/ManipulationAct ion.do HTTP/1.0
              Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
              application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint,
              */*
              Accept-Language: en-us
              Accept-Encoding: gzip, deflate
              User-Agent: Mozilla/4.0
              Content-Length: 346
              Host: WWW.DUMMY_SITE.COM
              Content-Type: application/x-www-form-urlencoded

              AlphaIDs=&origi n=placeAlpha&Se lectionIDs=2093 0%7C&BidTypes=B %7C&Part=10%7C& N
              ewPart=&Effort= 2%7C&NewEffort= &Modes=&SubEven tIds=&MktType=O &ei=2339117&iid =
              Standard&fa=pb& iCard=&placeAlp ha_guessLayMake Owe=OweGET
              /fishing/LoadMDA.do?mi=2 339117 HTTP/1.0
              Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
              application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint,
              */*
              Accept-Language: en-us
              Accept-Encoding: gzip, deflate
              User-Agent: Mozilla/4.0
              Host: WWW.DUMMY_SITE.COM

              As you can see I thought the update was being done with the GET but perhaps
              it was the POST with the formatting of the logging not very clear.

              Make sense?

              If my above assumptions are true, what should my POST string look like?
              I understand how to format the GET, it would be as McKirahan suggested:

              ie
              http://www.dummy_site.com/fishing/LoadMDA.do?mi=2339117

              Should it be (one long string)
              http://www.dummy_site. com/fishing/ManipulationAct ion.do?mi=23391 17&AlphaIDs=&or igin=placeAlpha &SelectionIDs=2 0930%7C&BidType s=B%7C&Part=10% 7C&NewPart=&Eff ort=2%7C&NewEff ort=&Modes=&Sub EventIds=&MktTy pe=O&ei=2339117 &iid=Standard&f a=pb&iCard=&pla ceAlpha_guessLa yMakeOwe=OweGET ";

              leaving the "%7C"s in place.

              I apologise if I want spoon feeding but I am scared to do to much trial and
              error as the DB is live with my own personal account details and I dont want
              to screw it up.

              Thanks - and sorry to you and McKirahan for being stupid ;)







              Comment

              • Michael Winter

                #8
                Re: GET Message format HTTP

                On Fri, 24 Dec 2004 16:49:59 -0000, Dodger <not@home.com > wrote:

                [snip]
                [color=blue]
                > I think I may have been getting confused with the previous POST command
                > that was issued. That would make sense wouldn't it?[/color]

                Yes. I would have suggested it, but I wasn't completely sure.
                [color=blue]
                > As I am updating the database this should be done with a POST instead of
                > a GET shouldn't it?[/color]

                Generally, yes.
                [color=blue]
                > Does the POST data string append the POST header?[/color]

                As I understand it, yes.

                [snip]
                [color=blue]
                > If my above assumptions are true, what should my POST string look like?[/color]

                How are you making the request? If it's via HTML, you'll have to place the
                data in a form and submit it that way. You may be able to use the XML HTTP
                Request object (<URL:>), but it's support is lower than standard HTML
                forms.

                [snip]
                [color=blue]
                > Thanks - and sorry to you and McKirahan for being stupid ;)[/color]

                There's nothing to apologise for.

                Good luck,
                Mike

                --
                Michael Winter
                Replace ".invalid" with ".uk" to reply by e-mail.

                Comment

                Working...