Regards, Atul.
I came to this world on a Learner's License
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Steve
Steve Luke wrote:This is possible with the standard libraries, but is a lot easier if you use an additional library designed for HTTP communication. For example the Apache HTTPClient (Find It Here) is a common one. Follow the link for downloads, tutorials, and code samples.
Regards, Atul.
I came to this world on a Learner's License
Regards, Atul.
I came to this world on a Learner's License
Atul Darne wrote:thanks steve. i got the idea, but what about if i need to implement https ?
Pat Farrell wrote:
The Apache HTTP client fully implements https/ssl/tls. You really do not want to do this yourself. While its not all that hard to get https to work in simple cases, getting it 100% right and secure is very, very hard.
One should never implement code when there is a well maintained library that does what you need.
Regards, Atul.
I came to this world on a Learner's License
Atul Darne wrote:i have tried couple of things, but still stucked up.
iam not able to upload the data files[or whatever the upload file is] to the http server root.
is there any way to post the files to the server
please assist and help.
Regards, Atul.
I came to this world on a Learner's License
Steve
Steve Luke wrote:Do you have code on the Server side which accepts an POST request and knows how to process the contents as a File to store?
Regards, Atul.
I came to this world on a Learner's License
Atul Darne wrote:
Steve Luke wrote:Do you have code on the Server side which accepts an POST request and knows how to process the contents as a File to store?
hi Steve,
i have some ending to the http url, provided by my friend. it might accept the POST request, if i send something to it.
And even i would like to know it in detail, if i myself configure it on my machine, it would add up to my knowledge. about processing the contents and store it.
thanks for your valuable reply in advance
Steve
Consider Paul's rocket mass heater. |