changing directory (on http server) using streams

BlitzMax Forums/BlitzMax Programming/changing directory (on http server) using streams

Gavin Beard(Posted 2008) [#1]
Hi all,

I am connecting to a web server (running svn), in this instance the blitzmax svn server using sockets and streams. Because it wont let me specify the directorys svn/blitzmax/ when calling hostip, i have connecting first to blitzmax.com:81, but how can i then navigate through the two sub dirs svn > blitzmax?

sample code:
SuperStrict
Global socket:TSocket[1];
Global stream:Tsocketstream[1];
Global ipaddress:String;
socket[0]=CreateTCPSocket();
Global xx:String;

If ConnectSocket (socket[0],HostIp("blitzbasic.com"),81)  Then
'DebugStop
	Print "Socket Connected"
	stream[0] = CreateSocketStream(socket[0]);
	If (stream[0]) Then
		WriteLine (stream[0],"svn");
		Print ReadLine(stream[0]);
		Repeat
			Local xxx:String = ReadLine(stream[0]);
			Print xxx
			If xxx="" Then Exit
		Forever
	End If
EndIf

CloseStream(stream[0]);
CloseSocket(socket[0]);



i've tried on a few servers such as http://www.binary-pear.co.uk/ and blitmax.com, but once connected i cant change folders.

thanks