Dear all I am currently trying to find a java source code with which either HTTP POST or GET request can be sent. Unfortunately I have run into bunch of snippets that I can not run. Is there anyone that can tell me where I can find complete source code for sending POST or GET request?
Thank you in advance
rinko
0
Newbie Poster
Recommended Answers
Jump to PostWhat are you talking about?
Look up HttpURLConnection in the API or HttpClient from apache. And, no, neither of these things will give you finished code to simply execute and do what you want. Nothing ever will.
Both of these are APIs, of which you can search and …
Jump to PostIf you are talking about reading the contents of the form submitted using the GET or POST method, try looking into
getParameter(input_type_name)
method of the request class.
Jump to PostYou don't as such get the contents of the resopnse. Reponse in general is sent to the client -- what to do with it depends on the client, which is normally browser in our case. You can let the browser know you are sending an XML file or video by …
All 11 Replies
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
rinko
0
Newbie Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
rinko
0
Newbie Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
rinko
0
Newbie Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
rinko
0
Newbie Poster
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
madhavireddy
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.