Web request sample

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
me
Posts: 4
Joined: Thu Jul 14, 2005 3:06 pm

Web request sample

Post by me »

Hi,

Does anybody have a SIMPLE program that send and receives a http request so it could be added to the SDK samples. Yes, we already have the Weather program but it is confusing and not simple ^_~
It would help many of us to get the basic on how to activate the connexion,send the request and receive it.

Ciao
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

I would think that would have to wait until PSPSDK got proper network support.
User avatar
me
Posts: 4
Joined: Thu Jul 14, 2005 3:06 pm

Post by me »

Hmmmm,

So what about a NOT SIMPLE one that shows the different steps needed at the moment to do it. So we might be able to help the SDK developers by getting more people knowing how it works and develop on it.
I didnt expect to have a very nice way to do it when posting this topic, just a simple program that does it in order to understand and start building on it.

Ciao
User avatar
Agoln
Posts: 326
Joined: Wed Jun 08, 2005 3:14 am
Location: Fort Wayne, IN

Post by Agoln »

http get/send requests are just simple text commands. You can look at psppet's wifi sample v.02, and work with that. That's your not so simple way of doing it.
Lego of my Ago!
PspPet
Posts: 210
Joined: Wed Mar 30, 2005 2:13 am
Contact:

Post by PspPet »

> Does anybody have a SIMPLE program that send and receives a http request so it could be added to the SDK samples.
Not yet AFAIK.

There is an extremely easy to use helper library built into the system (sceHttp)
http://pspdev.ofcode.com/api.php?type=2&id=186

It is built on the network "Infrastructure mode". It does most of the work handling the HTTP requests (text formatting and other special cases). If you are porting a big HTTP net client (like a web browser) it would be more hassle than it is worth.
For simple website data gathering (like the weather app), it will save you a lot of code (and avoid reinventing something the PSP already does)
User avatar
me
Posts: 4
Joined: Thu Jul 14, 2005 3:06 pm

Post by me »

Thanks guys, i m going right now to see that and learn from it.

Ciao
Post Reply