Esato

Forum > General discussions > Announcements > wap guru needed / prize contest

Author wap guru needed / prize contest
exosyphen
Z520 white
Joined: Feb 25, 2003
Posts: 117
From: Romania
PM, WWW
Posted: 2003-09-29 08:27
Reply with quoteEdit/Delete This PostPrint this post
Hi,

It seems that people like contests.
Here it goes.

I need some sourcecode, documentation, anything for this :

I connect with my cellphone to my WAP apn through GPRS.
I need a simple code to connect to a wapsite and retrieve the index.wml.
I want to make something similar to WinWap and I need a starting point.
I am working on my laptop, so C++ sourcecode would be fine.

The prize:

A cd with our latest game Digital Hazard (http://www.exosyphen.ro) - shipped to you.

Thank you.
www.mobileground.com - All the downloads for your phone!
mwright
T610
Joined: Jun 21, 2003
Posts: > 500
From: UK
PM
Posted: 2003-09-29 13:30
Reply with quoteEdit/Delete This PostPrint this post
We need more information before we can comment on this.

It looks like you are after a WAP browser? Is that right?
Are you after code to run on a PC or on the phone?
I presume that you mean you want to retrieve the "index page" from a site - it is not always index.wml.
exosyphen
Z520 white
Joined: Feb 25, 2003
Posts: 117
From: Romania
PM, WWW
Posted: 2003-09-29 14:17
Reply with quoteEdit/Delete This PostPrint this post
Simply show me how to download a wml to my PC thorugh a WAP connection.

I am connecting from my laptop with a T300 to a wap GPRS line.

Thank you.
www.mobileground.com - All the downloads for your phone!
mwright
T610
Joined: Jun 21, 2003
Posts: > 500
From: UK
PM
Posted: 2003-09-29 14:33
Reply with quoteEdit/Delete This PostPrint this post
OK - what language/IDE would you prefer.

If you are using MS VisualC - it is easy - just use one of the HTML components. Just because it is wml over WAP the protocol to download a page is the same.

If you have jabber - PM me for my name and I can chat with you

exosyphen
Z520 white
Joined: Feb 25, 2003
Posts: 117
From: Romania
PM, WWW
Posted: 2003-09-29 14:47
Reply with quoteEdit/Delete This PostPrint this post
Hi,

I want to use sockets in C/C++ to connect to a wap server and retrieve a wml file.
Simple as that .. I don;t need to display/render the page.

I just want to simply display the wml sourceode with a simple printf()

Thank you.
www.mobileground.com - All the downloads for your phone!
BOSSHOGG
W910 Black
Joined: Dec 19, 2002
Posts: > 500
PM
Posted: 2003-09-29 14:55
Reply with quoteEdit/Delete This PostPrint this post
Just enter the url into a non wml browser and it will download the page to your hd.

This message was posted from a T300

exosyphen
Z520 white
Joined: Feb 25, 2003
Posts: 117
From: Romania
PM, WWW
Posted: 2003-09-29 14:58
Reply with quoteEdit/Delete This PostPrint this post
I need sourcecode!
I need sourcecode to download a wml file in VIsual C++ using sockets!

I have wap browsers on my phone, laptop, etc ...

www.mobileground.com - All the downloads for your phone!
BOSSHOGG
W910 Black
Joined: Dec 19, 2002
Posts: > 500
PM
Posted: 2003-09-29 15:00
Reply with quoteEdit/Delete This PostPrint this post
*senses anger* time to back of :-D

This message was posted from a T300

mwright
T610
Joined: Jun 21, 2003
Posts: > 500
From: UK
PM
Posted: 2003-09-29 15:08
Reply with quoteEdit/Delete This PostPrint this post
Rather that do it yourself - why not use an existing library.

I recommend LIBwww http://www.w3.org/Library/

It can be tricky to get all the bits right by yourself

exosyphen
Z520 white
Joined: Feb 25, 2003
Posts: 117
From: Romania
PM, WWW
Posted: 2003-09-29 15:13
Reply with quoteEdit/Delete This PostPrint this post
Ok,

I open a socket on port 80 to google.com
I send a header : GET / HTTP 1.1
blah bla blah

and I get back the index source.

Now I want the same with WAP.

I got it done for html in a few lines .. but I don;t know how to do it for wml.


www.mobileground.com - All the downloads for your phone!
mwright
T610
Joined: Jun 21, 2003
Posts: > 500
From: UK
PM
Posted: 2003-09-29 15:18
Reply with quoteEdit/Delete This PostPrint this post
It is just the same for wap as for http.

The basic protocol is unchanged - only the contact is.

I use the same server (apache) to serve up html and wml - the server does not care/need to know. The protocol at this level is tha same.

The only issue might be the WAP gateway if there is one - just bypass it and go straight for the server

[ This Message was edited by: mwright on 2003-09-29 14:19 ]
exosyphen
Z520 white
Joined: Feb 25, 2003
Posts: 117
From: Romania
PM, WWW
Posted: 2003-09-29 15:21
Reply with quoteEdit/Delete This PostPrint this post
I will try that. Thanks.
Drop me a line at robert@exosyphen.ro so I can give you some feedback if it works.
Access the forum with a mobile phone via esato.mobi