Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

Get vs Post  RSS feed

 
Chiran Mathur
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Report post to moderator
Can anyone explain the real differences between get and a post.
a. This is what I did.
II wrote a program using Get and did somethoing like :
PrintWriter out = new PrintWriter();
out.print("GET " +url+ "HTTP/r/r/n");
In this case the program returns me the html in the page . Now when I do:
PrintWriter out = new PrintWriter();
out.print("POST " +url+ "HTTP/r/r/n");
the program works but it does not return anything.

Can anyone explain how get and post differ and how they work internally?
Thanks.
Chiran
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross post your questions to multiple forums. Most of the visitors here read in many of the forums and it is frustrating to see the same question repeated over and over. You have a better chance of getting a correct and timely answer if you post it to the most appropriate forum instead of using the shotgun approach and hoping you'll hit something.
Let's continue the discussion here.
[ September 11, 2002: Message edited by: Dave Vick ]
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!