Writing to internet Files

Blitz3D Forums/Blitz3D Programming/Writing to internet Files

Chimeara(Posted 2008) [#1]
How would you write to an internet file?

I've set the file permissions on the server to be writeable... but i'm still not sure if it's possible to code it in blitz?
My code so far is looking like this...

connection2 = OpenTCPStream ( "www.darknimbuspro.com", 80)
If connection2
Print "Connected! Sending request..."
WriteLine connection2,"GET http://www.darknimbuspro.com//RO.txt HTTP/1.0"
WriteLine connection2, Chr$( 10 )

Print "Request sent. Waiting for reply..."

WriteLine(connection2,ClientName)
WriteLine(connection2,ClientClass)
WriteLine(connection2,Clientlvl)
WriteLine(connection2,ClientUpdated)

Else
Print "ERROR: Failed to connect to server."
EndIf

Return
EndIf
EndIf EndIf


Ked(Posted 2008) [#2]
I think you would use FTP instead of TCP. There are some examples of FTP in the Code Archives.