#101856 - 2003-06-06 02:14 AM
Re: Jooel - WGET and WPUT
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Ahemm..
Source Code my friend.. Maybe that will provide some insight.
Kent
|
|
Top
|
|
|
|
#101859 - 2003-06-06 02:14 PM
Re: Jooel - WGET and WPUT
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Found some intersting code to do PUT to the server.. The only thing is that it still calls on FTP.EXE to do so.
Kent
|
|
Top
|
|
|
|
#101860 - 2003-06-06 02:53 PM
Re: Jooel - WGET and WPUT
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Hmm..
http://www.serverobjects.com/products.htm#free
quote:
AspInet™ This component allows you to remotely GET and PUT files via FTP from ASP. Note: This is a server-side component and does not read client-side files. This is for strictly server-side file transfer.
Tried also looking for this information at -
http://codeave.com http://line9.com > under Snippets http://15seconds.com
too.
Kent
|
|
Top
|
|
|
|
#101862 - 2003-06-06 05:20 PM
Re: Jooel - WGET and WPUT
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Hmmm.
There is WinHTTP which has a COM interface for scripting, and is available as part of the OS for:
- Microsoft Windows Server 2003 family
- Microsoft Windows XP, Service Pack 1
- Microsoft Windows 2000, Service Pack 3 (except Datacenter Server)
|
|
Top
|
|
|
|
#101864 - 2003-06-06 06:46 PM
Re: Jooel - WGET and WPUT
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Jooel,
Sorry to keep digging on this. There has to be a way to do this. I am with you in the sense that we should not need any external DLL, OCX, or EXE to to do this. An internal Object would be fair game.
Even started to look at this in Google Groups too.
Kent
|
|
Top
|
|
|
|
#101865 - 2003-06-06 10:37 PM
Re: Jooel - WGET and WPUT
|
Bryce
KiX Supporter
   
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
|
|
Top
|
|
|
|
#101866 - 2003-06-06 10:41 PM
Re: Jooel - WGET and WPUT
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
I think the main objective is/was to not use any externals..
This was about the closest code we could find - Ftp Using Inetctls
Thanks,
Kent
|
|
Top
|
|
|
|
#101868 - 2003-06-07 03:47 AM
Re: Jooel - WGET and WPUT
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Here is what I have so far with Inetctls..
code:
cls break on dim $fso, $ftpo, $sLFile $fso=CreateObject('Scripting.FileSystemObject') $ftpo=CreateObject('InetCtls.Inet.1') ;Msinet.ocx $ftpo.URL='site.com' $ftpo.UserName='kdyer' $ftpo.Password='password' ?'Connecting...' $ftpo.Execute('CD /kdyer') ?@error $ftpo.Execute('dir') ?@error $ftpo.Execute('Put c:\services.msc /kdyer/services.msc') ?@error get $k $fso=0 $ftpo=0
Again, the basis of this code was snagged from - Ftp Using Inetctls.
It also seems going through the Google Groups that ServerXMLHTTP maybe an option too.
Kent
|
|
Top
|
|
|
|
#101870 - 2003-06-07 07:26 AM
Re: Jooel - WGET and WPUT
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
OK..
It reports a 6 on each of these lines..
code:
$ftpo.Execute('dir') ?@error $ftpo.Execute('Put c:\services.msc /kdyer/services.msc') ?@error
Kent
|
|
Top
|
|
|
|
#101872 - 2003-06-08 07:46 AM
Re: Jooel - WGET and WPUT
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Ok..
Well doing some more digging we find more code/source code..
Creating an FTP Component in Visual Basic
Have a look at this even though it is is ASP/VB-specific.
There is an included DLL (I know, I know) as well as the full source code as well as some included ASP files to illustrate the methods in the source as well as the compiled DLL (COM) file.
Kent
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 867 anonymous users online.
|
|
|