![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on PSP-HTTPD v0.6 - with Uploading + LHP Scripting within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Info PSP-HTTPD is an extremely portable web server that runs off just your PSP's Wi-Fi capabilities, in Infrastructure mode. When ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() Sexy Developer
|
Info
PSP-HTTPD is an extremely portable web server that runs off just your PSP's Wi-Fi capabilities, in Infrastructure mode. When you start it up, it will connect to the Wi-Fi router and then your PSP will be accessible by any other Internet-capable device on your network. This means that you can wirelessly browse the files on your PSP using your computer, cell phone, PDA, or even a second web browser-enabled PSP! If you're really short on computers, you can open up your router to the web and host a website off your PSP. ![]() Also, starting at 0.6, you can upload files to your PSP wirelessly from anywhere in the world just by using your web browser. There is also a new module called LHP included. This allows you to embed Lua code in web pages, to create dynamic server-side scripts on your PSP. Changelog 0.6 ----- * Created the first implementation of LHP, for Lua-powered dynamic pages with psp-httpd * Server can now parse variables in both GET and POST requests * Included a script for file uploading * Folder listing templates include a link to file uploader * All network output (folder listings, headers, etc.) is now sent in chunks * Server will not automatically restart after an error * Added orange as a colour code for graphicsPrint Attainable Download Speed Chart This is a quick list of common chunk sizes and the speeds that can be attained with them under optimum conditions. Sizes under 8192 are recommended if you have a low-quality connection to your access point. 1024: 20 KB/s 2048: 40 KB/s 4096: 80 KB/s (Default Setting) 8192: 120 KB/s 16384: 240 KB/s Anything over 16384 will most probably not be able to get much higher speeds. Let me know if you discover otherwise, though. Screenshots The console, on the screen of the PSP, after a client has navigated directories and uploaded one file: ![]() Viewing the contents of the app directory using Mozilla Firefox: ![]() Download Make sure you read (or at least skim) the Readme 0.6.txt file for instructions on how to install and use PSP-HTTPD. As always, please post feedback in this topic and tell me of errors encountered, speeds reached, benchmarks performed, etc. Download psp-httpd v0.6 (633KB) |
|
|
|
|
|
#2 |
![]() |
Wow... nice work, as always!
__________________
[center][b] [url="http://forums.qj.net/showthread.php?p=177883"][color=Orange] The Definitive MPH Firmware Downgrade FAQ [url="http://forums.qj.net/showthread.php?t=2641"][COLOR=DarkRed]Pre-Made Homebrew for 1.50!! [/COLOR][/url][/color][/url][/b][/center] [CENTER][b][url="http://forums.qj.net/showthread.php?t=2189"][color=Red]Ultimate Homebrew Guide[/color][/url][/b][/CENTER] [center][size=1][color=Gray]-------------------------------------[/color][/size][/center] [center][b]Read about[/b] [url="http://forums.qj.net/showthread.php?t=9708"][color=Purple][b]Operation: PSPositive Posting[/b][/color][/url] [b] Read the [url="http://forums.qj.net/showthread.php?t=2047"]Posting Guidelines[/url][/b] [center][b]Read the [url="http://forums.qj.net/showthread.php?t=4394"][color=Green]Piracy Policy[/color][/url][/b] [/center] [/center] [center][size=1][color=Gray]-------------------------------------[/color][/size][/center] [center][color=Navy][b][size=1]Check Out Our Sister Sites[/size][/b][/color][/center] [center][size=1][color=Navy][url="http://www.ps3updates.com/"][color=Teal]PS3Updates[/color][/url] [url="http://www.360updates.com/"][color=Teal]360Updates[/color][/url] [url="http://www.ndsupdates.com/"][color=Teal]NDSUpdates[/color][/url] [url="http://www.nrupdates.com/"][color=Teal]NRUpdates[/color][/url][/color][/size] [/center] |
|
|
|
|
|
#4 |
![]() |
This thing gets sooo glitchy for me.
I tried it at first and, out of my three wireless settings, it does not connect to the right profile I choose. The first is a non-static connection to my netgear, the second is a non-static connection to a linksys, and the third is a static connection to that same netgear router. If I choose either of the netgear configurations, then it connects to the linksys router. If I select the linksys connection, it finally connects to my netgear router. Then I can access it, but it will not list any files in the directory. If I click on the upload link, then ta-da, no page found. I browsed through all the directories and no files would ever be listed. If the file didn't exist, then no page found. Even typing in the file name to view a file wouldn't find the file. I tried this at first on v0.6 modified with sei's psp tool, then with v0.5.1 modified by sei's psp tool, and finally v0.6 without being modified by sei's psp tool. I get the same symptoms with each of them that render the program effectively useless. Is it something to do with my configuration? This is the only thing I can see that I have still in my control. Oh and I used a different port than the default and made sure that I typed the address right into both firefox and IE. Same thing every time. Any suggestions? |
|
|
|
|
|
#5 |
![]() ![]() Developer
|
First of all excellent program! This version is more 2.0 compatible than the last!
Just a little thing that could help for 2.0 users... at the end just comment out Wlan.Term(), using --, because if you want to switch from one wifi app to another it terminates the wifi connection. Also when I try to add a network place ( in windows ) it asks for a file, _vti_inf.html or something like that. So it might be possible to upload files using the add a network place if you can find out what the _vti_inf.html is about... Just my two cents!
__________________
PSP Monopoly | PSP Tic Tac Toe | PSP eMail and SMS | Drag Mini | Block Dude http://www.cools.biaklan.com Currently Working on ????? Quote of the Week |
|
|
|
|
|
#6 | |
![]() ![]() Sexy Developer
|
Quote:
![]() And thanks to everybody for the comments!
Last edited by Elxx; 02-12-2006 at 08:12 PM.. |
|
|
|
|
|
|
#8 |
![]() Developer
|
Nice work Elxx.. its getting there!
First off I tried to upload a 10Mb file.. just to test the manly'ness of the connection.. but the transfer failed after the very first chunk cycle.. so I tried a 1.05Mb file and I got the same: Code:
Client found. Receiving request... Content-Length: 1102530 /LHP/up_submit.lhp |. File transfer complete. (303 b, 1 chunks of 8192b) Oh god... I tried downloading a 6Mb file and it gives me two errros: Code:
error: Src/srv.lua:178: bind error. Error: No script file found. Press start to reset I think I posted enought errors for today... :icon_wink but I get a feeling that some of this could be my setup. Could someone else confirm my findings..? |
|
|
|
|
|
#9 | |
![]() |
Quote:
|
|
|
|
|
|
|
#10 |
![]() ![]() Cool Developer
|
Bug:
Ok if you change the directory the PSP Default hosting is at, you CANNOT use the Upload command, or any LHP scripts for that matter, ( Unless you move them, but uploading finds the script at root, which isnt being hosted.. ) This could be your problem... BTW with LHP files, is the content drawn in the browser? or on the PSP, or both, im confused, i know this much, it can modify psp's files...
__________________
Hmm... |
|
|
|
|
|
#11 | |
![]() ![]() Sexy Developer
|
Quote:
The "No script file found" is some sort of weird LuaPlayer bug, you should be able to hit Start and the server will restart. No matter what error it gets, LuaPlayer always seems to print "script file not found." It's strange, but disregard it. Last edited by Elxx; 02-13-2006 at 02:28 PM.. |
|
|
|
|
|
|
#12 |
![]() ![]() Developer
|
Great program Elxx!
Just want to point out that there seems to be a bug in LUA. You need to add 1 to the value you pass into Wlan.useConnectionConfig( ). So to select the first connection you pass 2, for connection 2 you pass 3 and so on. Somehow it works to pass 1, it will select the first connection, but so will passing 2. There is also a problem with LUA's network enumeration. If you have several connections configured, and delete one, none of the connections after the one you deleted will be returned by Wlan.getConnectionConfigs (). The solution to this is to delete those no showing connections and recreate them. Jonny |
|
|
|
|
|
#13 |
|
I dont seem to ge to the PSP, I connect and everything but I cant go into the psp with the IP that shows, it just sends me to the MSN site, help please?
I mean, hell it shows the IP address on the Top right corner, but then I input the IP on MOzzilla or any browser and nothing changes, page isnt found at all..
Last edited by Kiko; 02-13-2006 at 07:53 PM.. |
|
|
|
|
|
|
#14 |
![]() |
Fixed my problem. Looks like changing the port that it is accessed on being set to anything other than 80 broke it.
File uploads and downloads don't really work (not enough memory, recieved one chunk, etc.), but I guess I should just be glad it works! thanx.
Last edited by manaox2; 02-17-2006 at 01:46 AM.. |
|
|
|
|
|
#15 |
![]() ![]() Cool Developer
|
Downloads and Uploads should work seemlessly...
With the occasional wait of cause... BTW is it possible to host this outside of a network? Because portfowarding to WiFi isnt always possible... ( as it uses router functions. )
__________________
Hmm... |
|
|
|
|
|
#16 |
![]() |
I'm using Firefox 1.5 and whenever I go to the "Upload File" screen all I get is a blank screen.
Has anybody else experienced this?
__________________
[img]http://img137.imageshack.us/img137/9792/1qj7.png[/img] [SIZE="1"][B]|Main Rig|[/B] Asus P5K Deluxe [0404] Q6600 L738A999 G0 SLACR @ 3.6Ghz [400x9] 2x1GB Firestix DDR2-1000 ATI HD2900XT [MCW60] Seagate 7200.11 500 GB / 7200.10 320GB Creative X-FI Platinum Antec P182 [B]|Cooling|[/B] D-Tek FuZion [Quad - Nozzle] [B]|[/B] MCW60 [B]|[/B] MCR320 [B]|[/B] EKRes150 [B]|[/B] DDC-1T /w AlphaCool Top[/SIZE] |
|
|
|
|
|
#18 |
![]() |
I left my config as default so the directory is on the root.
__________________
[img]http://img137.imageshack.us/img137/9792/1qj7.png[/img] [SIZE="1"][B]|Main Rig|[/B] Asus P5K Deluxe [0404] Q6600 L738A999 G0 SLACR @ 3.6Ghz [400x9] 2x1GB Firestix DDR2-1000 ATI HD2900XT [MCW60] Seagate 7200.11 500 GB / 7200.10 320GB Creative X-FI Platinum Antec P182 [B]|Cooling|[/B] D-Tek FuZion [Quad - Nozzle] [B]|[/B] MCW60 [B]|[/B] MCR320 [B]|[/B] EKRes150 [B]|[/B] DDC-1T /w AlphaCool Top[/SIZE] |
|
|
|
|
|
#21 |
![]() |
Lol, I thought this was a new release
__________________
[B]PSN (US):[/B] [B][COLOR="Black"]U[/COLOR][/B][B][COLOR="Red"]X[/COLOR][/B][B][COLOR="Black"]S[/COLOR][/B][B][COLOR="Red"]a[/COLOR][/B][B][COLOR="Black"]m[/COLOR][/B]. [B][COLOR="Black"]Wii Friends Code (US):[/COLOR][/B] [B][COLOR="Red"]1189-1627-7539-9268[/COLOR][/B]. [B]Super Smash Bros. Brawl Friends Code (US):[/B] [B][COLOR="Red"]3694-9973-1836[/COLOR][/B]. [B]Mario Kart Wii Friends Code (PAL):[/B] [B][COLOR="Red"]3523-2309-7092[/COLOR][/B]. |
|
|
|
|
|
#22 | |
|
Quote:
I'm running 3.52 m33-2 in 1.5 mode (obviously). Anyone have any suggestions? ETA: I just realized I resurrected this thread from death. ETA: (again) I got it working. Just deleted everything again and re-added a manual IP. Last edited by sier; 08-30-2007 at 05:21 PM.. |
||
|
|
|
|
|
#24 |
|
Hi all!
I've been caught by this homebrew and I want to try it, but i've a slim psp and the last version (0.6) wont work... So my question is: can anyone, elxx in particular, recompile the server for 3x firmwares, or can he just publish the source code so other can do that (maybe myself too) thanks to all! |
|
|
|
|
|
|
#26 |
![]() ![]() Bush Programmer
|
It's a LUA app, so you should be able to see the source code.
This app was never able to run a stable server, it always reset after five minutes or less, as did the other C web server app. It's a problem that will likely have to bew resolved in C, but the source of the similar C program was never made available unfortunately. |
|
|
|
|
|
#27 | |
|
Quote:
However i can try to ask my friends if someone of them has an older psp... but i still prefer a recompilation... @art i haven't understood you, what you mean when you say "It's a LUA app, so you should be able to see the source code." and then "but the source of the similar C program was never made available unfortunately" ? |
||
|
|
|
|
|
#28 | |
![]() ![]() Bush Programmer
|
Someone else made a C server that did the same thing (ie. clapped out after running for a few minutes).
Quote:
It's a LUA app, so you should be able to see the source code. Download it, look in the src folder and voilla... Human readable source code. You won't be able to fix the problem at the LUAplayer level though. It would only be possible to work on improving the other C based app, and the author of the C app never released his source code. |
|
|
|
|
![]() |
| Tags |
| lhp , psphttpd , scripting , uploading , v06 |
| Thread Tools | |
|
|