Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
VishnuSivadasVS authored Jun 23, 2020
1 parent 095d5f3 commit 7da46c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ allprojects {
### Read Data From a URL - FetchData.class
1. Create an object for FetchData class, pass the URL as argument. Don't forget to import the class.
```
FetchData fetchData = new FetchData("https://projects.vishnusivadas.com/AdvancedHttpURLConnection/readTest.php");
String URL = "https://projects.vishnusivadas.com/AdvancedHttpURLConnection/readTest.php";
FetchData fetchData = new FetchData(URL);
```
2. Start the fetching data.
```
Expand Down Expand Up @@ -54,7 +55,8 @@ String data = fetchData.getResult();

3. Create an object for PutData class, pass the URL as argument. Don't forget to import the class.
```
PutData putData = new PutData("https://projects.vishnusivadas.com/AdvancedHttpURLConnection/putDataTest.php", "POST", param, data);
String URL = "https://projects.vishnusivadas.com/AdvancedHttpURLConnection/putDataTest.php";
PutData putData = new PutData(URL, "POST", param, data);
```

4. Start the putData process.
Expand Down

0 comments on commit 7da46c2

Please sign in to comment.