"Michael Winter" <M.******@blueyonder.co.invalid> wrote in message
news:opsjipy7j9x13kvk@atlantis...
On Fri, 24 Dec 2004 03:50:50 -0000, Dodger <no*@home.com> wrote:
Apologies if the is the wrong NG.
It is, though I couldn't suggest an alternative.
[snip]
AlphaIDs=&origin=placeAlpha&SelectionIDs=20930%7C& BidTypes=B%7C
&Part=10%7C&NewPart=&Effort=2%7C&NewEffort=&Modes= &SubEventIds=
&MktType=O&ei=2339117&iid=Standard&fa=pb&iCard=
&placeAlpha_guessLayMakeOwe=Owe
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:
GET /fishing/LoadMDA.do?mi=2339117 HTTP/1.0
Are you sure you didn't get the tail-end of something else?
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/ManipulationAction.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=&origin=placeAlpha&SelectionIDs=20930%7C& BidTypes=B%7C&Part=10%7C&N
ewPart=&Effort=2%7C&NewEffort=&Modes=&SubEventIds= &MktType=O&ei=2339117&iid=
Standard&fa=pb&iCard=&placeAlpha_guessLayMakeOwe=O weGET
/fishing/LoadMDA.do?mi=2339117 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/ManipulationAction.do?mi=2339117&AlphaIDs=&origin= placeAlpha&SelectionIDs=20930%7C&BidTypes=B%7C&Par t=10%7C&NewPart=&Effort=2%7C&NewEffort=&Modes=&Sub EventIds=&MktType=O&ei=2339117&iid=Standard&fa=pb& iCard=&placeAlpha_guessLayMakeOwe=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 ;)