[chronojump] When uploading the backtraces: sends the email to the server.



commit f94663a9a687ec5992dc92372edd3d1e2af74d98
Author: Carles Pina i Estany <carles pina cat>
Date:   Mon Jan 26 23:43:04 2015 +0000

    When uploading the backtraces: sends the email to the server.
    
    At the moment sends test test com

 src/json_post.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/json_post.cs b/src/json_post.cs
index 6eb1de2..31e717a 100644
--- a/src/json_post.cs
+++ b/src/json_post.cs
@@ -38,6 +38,7 @@ public class JsonPost
        {
         string serverUrl = "http://api.chronojump.org:8080";;
                string filePath = UtilAll.GetLogFileOld();
+        string email = "test test com";
 
                if(! File.Exists(filePath)) {
                        this.ResultMessage = Catalog.GetString("Could not send file.\nIt does not exist.");
@@ -45,7 +46,7 @@ public class JsonPost
                }
 
                // Create a request using a URL that can receive a post. 
-               WebRequest request = WebRequest.Create (serverUrl + "/backtrace");
+               WebRequest request = WebRequest.Create (serverUrl + "/backtrace/" + email);
 
                // Set the Method property of the request to POST.
                request.Method = "POST";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]