Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm having a hard time deciding how to do this correctly so any input would be appreciated.

I'm trying to transfer my xml files from and applet to a servlet.

The solution I found for now is to pass the XML file as a string of data in a POST request.

When googling the problem I found the option of sending it by FTP.

What I would like to know is is there a way to simply transfer a XML file using HTTP

Jason

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
194 views
Welcome To Ask or Share your Answers For Others

1 Answer

You are on the correct track. Do a HTTP POST of the XML to a Servlet. But if the number of XML's to be transferred is huge then FTP might be the right option.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...