Re: Using POST to send bitmap image with Java



In article <484085f4$0$16920$ec3e2dad@xxxxxxxxxxxxxxxxxxxxxx>,
"Kenneth P. Turvey" <kt-usenet@xxxxxxxxxxxxxxxxxx> wrote:
[...]
I'm actually in the process of doing this right now. I'm going to be
posting the image to a URL that is a PHP script. When I was looking at
this I thought that this really made more sense to use a PUT method to
post the image, but the guy working on the PHP side insisted on using a
POST method.

Is there a reason that POST would be selected over PUT for this
application? Are there reasons to go with PUT here?

<http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html>:

"The fundamental difference between the POST and PUT requests is
reflected in the different meaning of the Request-URI. The URI in a POST
request identifies the resource that will handle the enclosed entity...
In contrast, the URI in a PUT request identifies the entity enclosed
with the request..."

Since you're "posting the image to a URL," I think you answered your own
question:-)

John
--
John B. Matthews
trashgod at gmail dot com
home dot woh dot rr dot com slash jbmatthews
.



Relevant Pages

  • Re: RPC over HTTP failing with 400 Bad Request on Proxy
    ... in this post, If the issue persists, please submit a new request. ... please "Reply to Group" via your newsreader so ... This posting is provided "AS IS" with no warranties, and confers no rights. ...
    (microsoft.public.exchange.connectivity)
  • Re: Public Apology to Bill from John P. re: Military Service
    ... > honor my promise to him should he make the request. ... > looked like anyone's discharge papers, and Bill's posting of what does ... > with a scanner and CD burner. ...
    (talk.politics.guns)
  • Re: Public Apology to Bill from John P. re: Military Service
    ... >> honor my promise to him should he make the request. ... >> looked like anyone's discharge papers, and Bill's posting of what does ... > Cut the garbage! ... Post your proof of service or eat crow! ...
    (talk.politics.guns)
  • Re: Public Apology to Bill from John P. re: Military Service
    ... > information responding honestly says a great deal about you. ... > honor my promise to him should he make the request. ... > looked like anyone's discharge papers, and Bill's posting of what does ...
    (talk.politics.guns)
  • Re: Office 2008 Update
    ... changing his posting ID and posting host. ... Dutch proxy, a Scots proxy, and an American proxy. ... remind him that researchers have shown that monkeys can tell the ... email to oshea dot j dot j at gmail dot com. ...
    (uk.comp.sys.mac)