E
E
emigrantdd2014-09-24 17:48:12
Android
emigrantdd, 2014-09-24 17:48:12

How to build a request to the server?

Good day. You need to make a regular POST or GET request, but the trouble is that I can’t figure out these requests at all when there are more than 2 lines of data, they could help compose one of these requests, preferably POST. Here is an example of what string should come to the server:

"geo":{
        "count":"2",
        "_1":{
              "data":"1523,1561",
              "date":"2014-08-09 14:00:44"
             },
        "_2":{
              "data":"1600,1599",
              "data":"2014-08-09 14:30:00"
             }
        },
"account":{
              "count":"1",
              "_1":"[email protected]"
             }

Please help me, or throw off a link to a resource where there would be a similar problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2014-09-24
@emigrantdd

Well, for example, here: stackoverflow.com/questions/3027066/how-to-send-a-...
You need a regular POST request, in the body of which you put anything you like. In this case, your JSON.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question