user667340
user667340

Reputation: 531

fetching data from remote databases

I am trying to make application on google app engine which can fetch data from my other remote database , as far as i have learned that we can do it by using python in this way , If i am not wrong import urllib

form_fields = {
  "first_name": "Albert",
  "last_name": "Johnson",
  "email_address": "[email protected]"
}
form_data = urllib.urlencode(form_fields)
result = urlfetch.fetch(url=url,
                        payload=form_data,
                        method=urlfetch.POST,
                        headers={'Content-Type': 'application/x-www-form-urlencoded

Is is possible that i can fetch data from one of my this url using java and get the data store in datastore . Thanks

Upvotes: 1

Views: 264

Answers (1)

Chris Bunch
Chris Bunch

Reputation: 89893

It is definitely possible to do it along those lines - is there a particular problem you're running into? Also, you may want to note that this means your remote database is exposed to the world, so you should have some means of protecting access to it.

Upvotes: 1

Related Questions