This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Creating the data to be sent, note the escaped quotes that are required | |
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(3); | |
nameValuePairs.add(new BasicNameValuePair("\A\"", "\"/api/v1/a/1/\"")); | |
nameValuePairs.add(new BasicNameValuePair("\"B\"", "\"/api/v1/b/1/\"")); | |
nameValuePairs.add(new BasicNameValuePair("\"C\"", "\"Hello from Android\"")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This likely isn't useful to anybody else. But it's an example of how to | |
adapt python's ftplib to grab just the first few kb of a given file. | |
In this case, all we need is the first few kb to get the metadata from a | |
GeoTIFF file. | |
""" | |
import ftplib |
NewerOlder