diff options
author | MW | 2007-12-05 19:02:57 +0000 |
---|---|---|
committer | MW | 2007-12-05 19:02:57 +0000 |
commit | d2736437d42758ddefee4e50e23c465e514077be (patch) | |
tree | 35d9ece58c1c9d63d28015a60964a5103eb1a343 /OpenSim/Framework/Servers/RestObjectPosterResponse.cs | |
parent | From Justin Casey (IBM) (diff) | |
download | opensim-SC-d2736437d42758ddefee4e50e23c465e514077be.zip opensim-SC-d2736437d42758ddefee4e50e23c465e514077be.tar.gz opensim-SC-d2736437d42758ddefee4e50e23c465e514077be.tar.bz2 opensim-SC-d2736437d42758ddefee4e50e23c465e514077be.tar.xz |
Some refactoring of the RestObjectPoster (and related classes).
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Servers/RestObjectPosterResponse.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/RestObjectPosterResponse.cs b/OpenSim/Framework/Servers/RestObjectPosterResponse.cs index eeae285..d91d566 100644 --- a/OpenSim/Framework/Servers/RestObjectPosterResponse.cs +++ b/OpenSim/Framework/Servers/RestObjectPosterResponse.cs | |||
@@ -15,10 +15,15 @@ namespace OpenSim.Framework.Servers | |||
15 | 15 | ||
16 | public void BeginPostObject<TRequest>(string requestUrl, TRequest obj) | 16 | public void BeginPostObject<TRequest>(string requestUrl, TRequest obj) |
17 | { | 17 | { |
18 | BeginPostObject("POST", requestUrl, obj); | ||
19 | } | ||
20 | |||
21 | public void BeginPostObject<TRequest>(string verb, string requestUrl, TRequest obj) | ||
22 | { | ||
18 | Type type = typeof(TRequest); | 23 | Type type = typeof(TRequest); |
19 | 24 | ||
20 | WebRequest request = WebRequest.Create(requestUrl); | 25 | WebRequest request = WebRequest.Create(requestUrl); |
21 | request.Method = "POST"; | 26 | request.Method = verb; |
22 | request.ContentType = "text/xml"; | 27 | request.ContentType = "text/xml"; |
23 | 28 | ||
24 | MemoryStream buffer = new MemoryStream(); | 29 | MemoryStream buffer = new MemoryStream(); |