开发者

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": "Albert.Johnson@example.com"
}
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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜