POST file to web server

Blitz3D Forums/Blitz3D Programming/POST file to web server

Gillissie(Posted 2007) [#1]
Ok, I've scoured these forums and the code archives. I've tried everything I can in Blitz3D, but my HTTP requests just won't work. I don't know if my headers aren't exactly right, or if the file data isn't formatted correctly. I haven't been able to find a single "full" example and explanation of formatting a HTTP request for posting a file with data. There appears to be a BlitzMax solution in the code archives, but not Blitz3D. Can anyone help with this please?

http://www.blitzbasic.com/codearcs/codearcs.php?code=1932


t3K|Mac(Posted 2007) [#2]
why don't you use ETNA (http://www.blitzbasic.com/toolbox/toolbox.php?tool=160)? Or do you need special formatted HTTP Headers?


Gillissie(Posted 2007) [#3]
I AM using ETNA, but that doesn't use POST, and doesn't have the capability to post files. I want to be able to allow people to upload images of their avatars to my web server so people can see what they look like in their game. I am currently using ETNA to upload the data, but I need to upload the images now.


t3K|Mac(Posted 2007) [#4]
you could always convert the images to plaintext and then upload them via ETNA/PHP. its ugly, but it works. at least for me ;)


Yahfree(Posted 2007) [#5]
this is sort of my problem as well, i'm trying to figure out how to save .txt files to a website directory... currently trying ETNA and i don't get it. :)

sorry for the hijack.