Page 1 of 1 1
Topic Options
#101854 - 2003-06-05 02:50 PM Jooel - WGET and WPUT
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Jooel -

Ref. thread - http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=2;t=004407

http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000312

Wait a second.. Wasn't PUT the one we were having trouble with COMing before? We were able to GET using an AODB Connection. I know using an external tool, but this may provide some insights.

WGET


GNU wget - GNU Project - Free Software Foundation (FSF)


Hmm.. Doing some Googling we find -

http://www.klake.org/~jt/wput/

Also includes Source Code.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#101855 - 2003-06-05 08:21 PM Re: Jooel - WGET and WPUT
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
heh, what do I do with them?
they are not kixtart so they can't be worth looking into [Wink]
_________________________
!

download KiXnet

Top
#101856 - 2003-06-06 02:14 AM Re: Jooel - WGET and WPUT
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Ahemm..

Source Code my friend.. Maybe that will provide some insight.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#101857 - 2003-06-06 10:07 AM Re: Jooel - WGET and WPUT
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sorry dude.
short check on the source code:
quote:

sd = socket(AF_INET, SOCK_STREAM, 0);

in pure english, it has nothing to do with scripting [Big Grin]
_________________________
!

download KiXnet

Top
#101858 - 2003-06-06 01:41 PM Re: Jooel - WGET and WPUT
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
You can do a "PUT" with telnet scripting, if you can rely on consistant responses from the web server.
Top
#101859 - 2003-06-06 02:14 PM Re: Jooel - WGET and WPUT
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#101860 - 2003-06-06 02:53 PM Re: Jooel - WGET and WPUT
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#101861 - 2003-06-06 03:50 PM Re: Jooel - WGET and WPUT
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
kent, you keep on searching.

I've done my searches and decided to leave it be.
there is no os-component that does it...
well, not as kixtart lacks all network functionality.

maybe later we will have something but currently it's a dead wish.
_________________________
!

download KiXnet

Top
#101862 - 2003-06-06 05:20 PM Re: Jooel - WGET and WPUT
Richard H. Administrator Offline
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
#101863 - 2003-06-06 05:41 PM Re: Jooel - WGET and WPUT
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sure [Big Grin]
winhttp and xmlhttp and...

we haven't found thus far any way to send files (to ftp) with these.
_________________________
!

download KiXnet

Top
#101864 - 2003-06-06 06:46 PM Re: Jooel - WGET and WPUT
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#101865 - 2003-06-06 10:37 PM Re: Jooel - WGET and WPUT
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
hey guys.... how about this??

http://www.serverobjects.com/comp/AspInet.zip

Top
#101866 - 2003-06-06 10:41 PM Re: Jooel - WGET and WPUT
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#101867 - 2003-06-07 01:10 AM Re: Jooel - WGET and WPUT
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I think the http-objects could rock...
we can even fake the port to be ftp-port but the server-response part...
and all the negotiation...

well, as you re-opened this, it might be worthwhile to again try this.
but sftp-ability we can't build in [Wink]
_________________________
!

download KiXnet

Top
#101868 - 2003-06-07 03:47 AM Re: Jooel - WGET and WPUT
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#101869 - 2003-06-07 04:15 AM Re: Jooel - WGET and WPUT
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
kent, you gave the code...
what your code is supposed to do and with it can't accomplish?
_________________________
!

download KiXnet

Top
#101870 - 2003-06-07 07:26 AM Re: Jooel - WGET and WPUT
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#101871 - 2003-06-07 10:22 PM Re: Jooel - WGET and WPUT
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
once again...
6 and 9 are the errors that come to kixtart.
both of these go to category of "not supported call"

meaning the com-object does not support your call.
not sober enough to re-search that thing but there normally needs to be something beyond documentation in com.
_________________________
!

download KiXnet

Top
#101872 - 2003-06-08 07:46 AM Re: Jooel - WGET and WPUT
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 867 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.071 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org