Groups > Symbian > Symbian EPOC connect > Re: Doing HTTP Post using a WAP APN




Doing HTTP Post using a WAP APN

Doing HTTP Post using a WAP APN
Wed, 11 Jan 2006 14:04:36 +053
Hello,
I've been working on this problem for quite sometime.
Basically my application which does simple HTTP GET and POST
does not work using the WAP only APN on the operator- which is cheap.
 It works fine with the open APN (WWW or Internet)  - which is much more 
expensive.
[ This is assuming that the proxy does not block certain URLs]

I did a work around which requires me to open a socket connection to the WAP 
Proxy
and write HTTP request packets in to the socket. But this method does not 
work with
some operators as I get a 503 - service unavailable message.

I wanted to know whether its possible to do a WAP Post - Mika Raeto has 
given
a solution - but CWap classes are deprecated from 7.0 onwards which means it 
will
not work on most of the phones.

The second way is for the application to emulate being the phone's WAP 
browser because
the WAP browser on the phone works fine with any APN across the world.

Can someone please suggest a good way of doing this as there are 
applications in the
world which are able to work fine with the WAP APNs around the world.

Thanks,
Sourabh. 

Post Reply
Re: Doing HTTP Post using a WAP APN
Thu, 12 Jan 2006 13:42:22 +053
Sirius Black wrote:
> Hello,
> I've been working on this problem for quite sometime.
> Basically my application which does simple HTTP GET and POST
> does not work using the WAP only APN on the operator- which is cheap.
>  It works fine with the open APN (WWW or Internet)  - which is much more 
> expensive.
> [ This is assuming that the proxy does not block certain URLs]
> 
> I did a work around which requires me to open a socket connection to the
WAP 
> Proxy
> and write HTTP request packets in to the socket. But this method does not 
> work with
> some operators as I get a 503 - service unavailable message.
> 
> I wanted to know whether its possible to do a WAP Post - Mika Raeto has 
> given
> a solution - but CWap classes are deprecated from 7.0 onwards which means
it 
> will
> not work on most of the phones.
> 
> The second way is for the application to emulate being the phone's WAP 
> browser because
> the WAP browser on the phone works fine with any APN across the world.
> 
> Can someone please suggest a good way of doing this as there are 
> applications in the
> world which are able to work fine with the WAP APNs around the world.
> 
> Thanks,
> Sourabh. 
> 
> 
We are in the same boat. Our application does not work (sometimes gives 
a dns resolve error) when wap apn is selected. However, opera on my 6681 
opens any webpage using those same wap apns. So I'm sure there must be 
some way to do this.

The only meaningful difference between the wap apn and the iap I can see 
is that wap apns have a proxy and port defined. IAPs don't have these 
defined.

Please keep us informed if you find out any info and I'll do the same. 
BTW, can you give me a link to Mika's solution?

Post Reply
Re: Doing HTTP Post using a WAP APN
Thu, 12 Jan 2006 15:21:22 +053
Hi AMK

This is the link to Mika's Solution.
http://www.cs.helsinki.fi/u/mraento/symbian/wap.html

He says his method works only with Symbian 6.1 - which
means most of the phones it'll not work.

The Socket solution I implemented works with Airtel WAP APN
but does not work with Hutch (Orange) WAP APN.

I think a simple soulution would be to do a WAP GET and POST
instead of HTTP.

I am going to implement something like this.
http://discussion.forum.nokia.com/forum/showthread.php?s=e4f90e1ae633c0bf51672b7
5e3f014d5&postid=112281

You also try it and lets keep each other posted if this works.
-Sourabh

"AMK" <amk@spambust.com> wrote in message
news:uhDFY90FGHA.2088@extapps30...
> Sirius Black wrote:
>> Hello,
>> I've been working on this problem for quite sometime.
>> Basically my application which does simple HTTP GET and POST
>> does not work using the WAP only APN on the operator- which is cheap.
>>  It works fine with the open APN (WWW or Internet)  - which is much
more 
>> expensive.
>> [ This is assuming that the proxy does not block certain URLs]
>>
>> I did a work around which requires me to open a socket connection to
the 
>> WAP Proxy
>> and write HTTP request packets in to the socket. But this method does
not 
>> work with
>> some operators as I get a 503 - service unavailable message.
>>
>> I wanted to know whether its possible to do a WAP Post - Mika Raeto has

>> given
>> a solution - but CWap classes are deprecated from 7.0 onwards which
means 
>> it will
>> not work on most of the phones.
>>
>> The second way is for the application to emulate being the phone's WAP

>> browser because
>> the WAP browser on the phone works fine with any APN across the world.
>>
>> Can someone please suggest a good way of doing this as there are 
>> applications in the
>> world which are able to work fine with the WAP APNs around the world.
>>
>> Thanks,
>> Sourabh.
> We are in the same boat. Our application does not work (sometimes gives a 
> dns resolve error) when wap apn is selected. However, opera on my 6681 
> opens any webpage using those same wap apns. So I'm sure there must be 
> some way to do this.
>
> The only meaningful difference between the wap apn and the iap I can see 
> is that wap apns have a proxy and port defined. IAPs don't have these 
> defined.
>
> Please keep us informed if you find out any info and I'll do the same. 
> BTW, can you give me a link to Mika's solution?
>
> Thanks, AMK 

Post Reply
Re: Doing HTTP Post using a WAP APN
Thu, 12 Jan 2006 16:07:47 +053
Hi Sirius,

Do you really want to get into the wap stack? I think it will be too 
messy. I'm sure there's an easier or better way. As I mentioned, Opera 
works with wap apns on a 6680/81/30. I have tested with BPL APNs, it 
works fine with even the MMS APN and I tested Orange Wap and that works.

AMK

Sirius Black wrote:
> Hi AMK
> 
> This is the link to Mika's Solution.
> http://www.cs.helsinki.fi/u/mraento/symbian/wap.html
> 
> He says his method works only with Symbian 6.1 - which
> means most of the phones it'll not work.
> 
> The Socket solution I implemented works with Airtel WAP APN
> but does not work with Hutch (Orange) WAP APN.
> 
> I think a simple soulution would be to do a WAP GET and POST
> instead of HTTP.
> 
> I am going to implement something like this.
>
http://discussion.forum.nokia.com/forum/showthread.php?s=e4f90e1ae633c0bf51672b7
5e3f014d5&postid=112281
> 
> You also try it and lets keep each other posted if this works.
> -Sourabh
> 
> "AMK" <amk@spambust.com> wrote in message
news:uhDFY90FGHA.2088@extapps30...
>> Sirius Black wrote:
>>> Hello,
>>> I've been working on this problem for quite sometime.
>>> Basically my application which does simple HTTP GET and POST
>>> does not work using the WAP only APN on the operator- which is
cheap.
>>>  It works fine with the open APN (WWW or Internet)  - which is much
more 
>>> expensive.
>>> [ This is assuming that the proxy does not block certain URLs]
>>>
>>> I did a work around which requires me to open a socket connection
to the 
>>> WAP Proxy
>>> and write HTTP request packets in to the socket. But this method
does not 
>>> work with
>>> some operators as I get a 503 - service unavailable message.
>>>
>>> I wanted to know whether its possible to do a WAP Post - Mika Raeto
has 
>>> given
>>> a solution - but CWap classes are deprecated from 7.0 onwards which
means 
>>> it will
>>> not work on most of the phones.
>>>
>>> The second way is for the application to emulate being the phone's
WAP 
>>> browser because
>>> the WAP browser on the phone works fine with any APN across the
world.
>>>
>>> Can someone please suggest a good way of doing this as there are 
>>> applications in the
>>> world which are able to work fine with the WAP APNs around the
world.
>>>
>>> Thanks,
>>> Sourabh.
>> We are in the same boat. Our application does not work (sometimes gives
a 
>> dns resolve error) when wap apn is selected. However, opera on my 6681

>> opens any webpage using those same wap apns. So I'm sure there must be

>> some way to do this.
>>
>> The only meaningful difference between the wap apn and the iap I can
see 
>> is that wap apns have a proxy and port defined. IAPs don't have these 
>> defined.
>>
>> Please keep us informed if you find out any info and I'll do the same.

>> BTW, can you give me a link to Mika's solution?
>>
>> Thanks, AMK 
> 
Post Reply
Re: Doing HTTP Post using a WAP APN
Thu, 12 Jan 2006 16:57:39 +053
Hi AMK,

What solution have you implemented which works
with  Orange WAP APN ?

Are you talking about the browser working or your
application also working with the WAP APN.

The Default WAP browser ( as well as the Opera browser)
in Series 60 phones of course works with the WAP APN.
So our application should try to do the same thing what
the WAP browser does.

Please let me know about your solution.

Regards,
Sirius.



"AMK" <amk@spambust.com> wrote in message
news:gSxGpO2FGHA.1944@extapps30...
> Hi Sirius,
>
> Do you really want to get into the wap stack? I think it will be too 
> messy. I'm sure there's an easier or better way. As I mentioned, Opera 
> works with wap apns on a 6680/81/30. I have tested with BPL APNs, it works

> fine with even the MMS APN and I tested Orange Wap and that works.
>
> AMK
>
> Sirius Black wrote:
>> Hi AMK
>>
>> This is the link to Mika's Solution.
>> http://www.cs.helsinki.fi/u/mraento/symbian/wap.html
>>
>> He says his method works only with Symbian 6.1 - which
>> means most of the phones it'll not work.
>>
>> The Socket solution I implemented works with Airtel WAP APN
>> but does not work with Hutch (Orange) WAP APN.
>>
>> I think a simple soulution would be to do a WAP GET and POST
>> instead of HTTP.
>>
>> I am going to implement something like this.
>>
http://discussion.forum.nokia.com/forum/showthread.php?s=e4f90e1ae633c0bf51672b7
5e3f014d5&postid=112281
>>
>> You also try it and lets keep each other posted if this works.
>> -Sourabh
>>
>> "AMK" <amk@spambust.com> wrote in message 
>> news:uhDFY90FGHA.2088@extapps30...
>>> Sirius Black wrote:
>>>> Hello,
>>>> I've been working on this problem for quite sometime.
>>>> Basically my application which does simple HTTP GET and POST
>>>> does not work using the WAP only APN on the operator- which is
cheap.
>>>>  It works fine with the open APN (WWW or Internet)  - which is
much 
>>>> more expensive.
>>>> [ This is assuming that the proxy does not block certain URLs]
>>>>
>>>> I did a work around which requires me to open a socket
connection to 
>>>> the WAP Proxy
>>>> and write HTTP request packets in to the socket. But this
method does 
>>>> not work with
>>>> some operators as I get a 503 - service unavailable message.
>>>>
>>>> I wanted to know whether its possible to do a WAP Post - Mika
Raeto has 
>>>> given
>>>> a solution - but CWap classes are deprecated from 7.0 onwards
which 
>>>> means it will
>>>> not work on most of the phones.
>>>>
>>>> The second way is for the application to emulate being the
phone's WAP 
>>>> browser because
>>>> the WAP browser on the phone works fine with any APN across the
world.
>>>>
>>>> Can someone please suggest a good way of doing this as there
are 
>>>> applications in the
>>>> world which are able to work fine with the WAP APNs around the
world.
>>>>
>>>> Thanks,
>>>> Sourabh.
>>> We are in the same boat. Our application does not work (sometimes
gives 
>>> a dns resolve error) when wap apn is selected. However, opera on my
6681 
>>> opens any webpage using those same wap apns. So I'm sure there must
be 
>>> some way to do this.
>>>
>>> The only meaningful difference between the wap apn and the iap I
can see 
>>> is that wap apns have a proxy and port defined. IAPs don't have
these 
>>> defined.
>>>
>>> Please keep us informed if you find out any info and I'll do the
same. 
>>> BTW, can you give me a link to Mika's solution?
>>>
>>> Thanks, AMK
>> 
Post Reply
<< Previous 1 2 3 4 Next >>
( Page 1 of 4 )
about | contact