473,387 Members | 3,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Saving a remote file

I want to save a remote file. The Remote file is created by google maps
and has the name maps.klm
What I intend to do is the following
1) Make a route, like http://tinyurl.com/5oknap on the maps.google.com
website
2) paste that URL on my site and add "&output=kml" without the quotes to
it.
3) When calling the complete URL (like http://tinyurl.com/5durgg) in a
browser, it will ask to save the file maps.kml

What I want is to have this on my server without it asking to save it
first. So just copy the URL and the have it saved all in one go.

Or must I first save the file maps.kml localy and then save it remotely?

houghi
--
> Beware of he who would deny you access to information, <
for in his heart he dreams himself your master. <
Commissioner Pravin Lal: "U.N. Declaration of Rights" <
Nov 15 '08 #1
2 2012
houghi wrote:
I want to save a remote file. The Remote file is created by google maps
and has the name maps.klm
What I intend to do is the following
1) Make a route, like http://tinyurl.com/5oknap on the maps.google.com
website
2) paste that URL on my site and add "&output=kml" without the quotes to
it.
3) When calling the complete URL (like http://tinyurl.com/5durgg) in a
browser, it will ask to save the file maps.kml

What I want is to have this on my server without it asking to save it
first. So just copy the URL and the have it saved all in one go.

Or must I first save the file maps.kml localy and then save it remotely?

houghi
If you're requesting it from your local machine, there's no way to
directly save it on the server because it's not on the server.

To get it at the server, you have to request it from the server. It
shouldn't be that hard to do - just enter the information you want into
a form on your server then request the page using cURL.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Nov 15 '08 #2
Jerry Stuckle wrote:
If you're requesting it from your local machine, there's no way to
directly save it on the server because it's not on the server.
No, the request comes from http://houghi,org and requests
http://maps.google.com
To get it at the server, you have to request it from the server. It
shouldn't be that hard to do - just enter the information you want into
a form on your server then request the page using cURL.
Great. That was what I needed. Thanks. I am now using
http://be2.php.net/manual/en/curl.examples.php#83541 and worked it into
http://houghi.org/tomtom/test02.php (code on
http://houghi.org/tomtom/test02.phps)

I appologize for the hart attacks people will get watching the code. ;-)
houghi
--
> Beware of he who would deny you access to information, <
for in his heart he dreams himself your master. <
Commissioner Pravin Lal: "U.N. Declaration of Rights" <
Nov 16 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: LC | last post by:
Hi, I would like to know how I can save my current ASP page to the server side in html file format. Then I would like to stream it back to the client side. Any help is very much...
1
by: Bob Murdoch | last post by:
We have an asp application that creates reports from a database. The managers would like to create the report, view the results, add a comment, and save the report so that he can send a link to...
0
by: Umesh | last post by:
Hi, I have an Application, in which 1) need to post data to a URL(Remote Server), by using HTTPRequest. 2) get the Image data in the form of Stream in Response. 3) need to save this stream as a...
6
by: Nick Warrington | last post by:
Somebody let me loose with ASP and it was all going well until I hit (what I think is ) a minor problem. I am using IIS as a remote configuration tool to modify an XML config file on the server....
0
by: Umesh | last post by:
Hi Gurus, I have an Application, in which 1) need to post data to a URL(Remote Server), by using HTTPRequest. 2) get the Image data in the form of Stream in Response. 3) need to save this...
4
by: Pedro Leite | last post by:
Good Afternoon. the code below is properly retreiving binary data from a database and saving it. but instead of saving at client machine is saving at the server machine. what is wrong with my...
1
by: woostersoz | last post by:
Hi I have a toolbar written in .NET C++. I use the XMLDocument Load method to open a file from a URL (which points to a remote server). So far, so good.. I then edit this file's nodes in memory...
3
by: sean.j.gage | last post by:
I'm attempting to download a windows media video file from a remote server and I would like to start playing it as soon as it starts downloading. Is there some special way to save the file that...
5
by: idorjee | last post by:
hi guys, I'm trying to figure how to read a file from my other computer, and here is what i did. it doesn't work for some reason. i would really appreciate if you could help me with this. i get...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.