开发者

http request in windows service

开发者 https://www.devze.com 2023-01-13 20:49 出处:网络
How can we implement like this request: http://nominatim.openstreetmap.org/reverse?format=xml&lat=52.5487429714954&lon=-1.81602098644987&zoom=18&addressdetails=1

How can we implement like this request:

http://nominatim.openstreetmap.org/reverse?format=xml&lat=52.5487429714954&lon=-1.81602098644987&zoom=18&addressdetails=1

in a windows service.

what we are trying to do is this:

run a request from windows service, and when we get the response back,we will save to DB?

Edit: the service is in C++ native co开发者_开发问答de


Simply use the WebRequest or WebClient classes.


In native code you can use the WinINet library to make HTTP requests. The HttpSendRequest() method in particular.

0

精彩评论

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