Skip to main content

LG CG 300: Requested Page cannot be Displayed

6 replies [Last post]
Anonymous

Hi

I'm trying to hit a URL from my application and printing the received byte
array as string on screen.

I do receive response code :200
but the data is :
Html page with string "Requested Page cannot be displayed"

I have also tried to open google.com , and it gave me proper response.but
it also had an html comment with "w3g ....." and then the Html tags and
other content.

Where could be the problem?

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
SUBSCRIBE KVM-INTEREST Anonymous

Hi

I have tried logging at my server and server is not receiving any hit from
my LG CG300 whereas it does recieve hits from other devices like Nokia
6030,6102,Moto L6 etc.

Thanks

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Jofre Palau

Hi,
That sound as a response from the WAP Gateway altough the HTTP Code shall be
406 instead of 200.
I would add the appropiate Accept Header in the request (or just Accept:*/*)
so the WAP GW will know that your application is able to process that
content and it will let you fetch it.
Regards
Jofre

On 1/24/07, SUBSCRIBE KVM-INTEREST Anonymous wrote:
>
> Hi
>
> I have tried logging at my server and server is not receiving any hit from
> my LG CG300 whereas it does recieve hits from other devices like Nokia
> 6030,6102,Moto L6 etc.
>
> Thanks
>
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Dan Ackroyd

varun_codewrote:

>I'm trying to hit a URL from my application and printing the received byte
>array as string on screen.
>
>I do receive response code :200
>but the data is :
>Html page with string "Requested Page cannot be displayed"

If the data is not what you sent back from your server, then it's coming
from one of the proxies/wap gateways on the operators network.

That probably means that the operator either doesn't like your server, or
doesn't like the data it's sending, this happens sometimes because the
operator assumes the data should be valid wap/html, but it actually isn't.
Because of this the operator is mangling/completely altering the response
that is actually received on the phone.

One way to avoid this is to set the content type to "application/octet-
stream" on your server. This should stop the operator from touching the
data at all.

Though also there are other ways for this 'bad' data to reach your phone -
e.g. if a pay-as-you-go user has run out of credit on their phone, all http
requests they make might get redirected to a 'please top up your credit'
wap page, or if you server is unavailable, the operator might send their
own error page as the response.

cheers
Dan
Ack

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Adrian Valentin Dan

Hi.

What mime type is the server sending, perhaps the wap gateway doesnt
like it, and treats it as some unrenderable content.

Cheers.
Adrian.

Dan Ackroyd wrote:
> varun_codewrote:
>
>
>
>> I'm trying to hit a URL from my application and printing the received byte
>> array as string on screen.
>>
>> I do receive response code :200
>> but the data is :
>> Html page with string "Requested Page cannot be displayed"
>>
>
>
> If the data is not what you sent back from your server, then it's coming
> from one of the proxies/wap gateways on the operators network.
>
> That probably means that the operator either doesn't like your server, or
> doesn't like the data it's sending, this happens sometimes because the
> operator assumes the data should be valid wap/html, but it actually isn't.
> Because of this the operator is mangling/completely altering the response
> that is actually received on the phone.
>
> One way to avoid this is to set the content type to "application/octet-
> stream" on your server. This should stop the operator from touching the
> data at all.
>
> Though also there are other ways for this 'bad' data to reach your phone -
> e.g. if a pay-as-you-go user has run out of credit on their phone, all http
> requests they make might get redirected to a 'please top up your credit'
> wap page, or if you server is unavailable, the operator might send their
> own error page as the response.
>
> cheers
> Dan
> Ack
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>
>
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Punkey Funky

200, in HTML server terms, means that the web server provided you witha
page successfully...

http://www.w3.org/Protocols/HTTP/HTRESP.html

So, it seems likely that the string you get is what the web server has
actually provided to you. This could be the case where the web server
back end is dependent on something else to provide the page data (eg. a
database).

Perhaps try getting a different URL?

-L

SUBSCRIBE KVM-INTEREST Anonymous wrote:
> Hi
>
> I'm trying to hit a URL from my application and printing the received byte
> array as string on screen.
>
> I do receive response code :200
> but the data is :
> Html page with string "Requested Page cannot be displayed"
>
> I have also tried to open google.com , and it gave me proper response.but
> it also had an html comment with "w3g ....." and then the Html tags and
> other content.
>
> Where could be the problem?
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Juarez Junior

Hi,

Is it HTML or WML content? Can your browser read HTML content? Make rure
your browser can read HTML.

HTH!

Juarez Junior

On 1/18/07, SUBSCRIBE KVM-INTEREST Anonymous wrote:
>
> Hi
>
> I'm trying to hit a URL from my application and printing the received byte
> array as string on screen.
>
> I do receive response code :200
> but the data is :
> Html page with string "Requested Page cannot be displayed"
>
> I have also tried to open google.com , and it gave me proper response.but
> it also had an html comment with "w3g ....." and then the Html tags and
> other content.
>
> Where could be the problem?
>
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

--
Juarez Junior - Software Developer/Architect - Java EE/ME/SE - Forum NOKIA
Champion

Sun Certified Programmer for Java 2 Platform 1.2
Sun Certified Web Component Developer for J2EE Platform 1.3
Sun Certified Web Component Developer for J2EE Platform 1.4
Sun Certified Business Component Developer for J2EE Platform 1.3
Sun Certified Enterprise Architect for J2EE Platform - Part I
Sun Certified Programmer for Java 2 Platform 5.0
Sun Certified Mobile Application Developer for the Java 2 Platform Micro
Edition 1.0
Sun Certified Associate for the Java 2 Platform 1.0

E-mail/MSN/Google Talk: juarez.barbosa@gmail.com
MGJUG: juarez.barbosa@mgjug.com.br
GSM Mobile: +5531 9208 5948

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]