×

Discussion Board

Results 1 to 5 of 5

Thread: error in GPRS

  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    94

    error in GPRS

    Hi to all,

    This is an urgent, when I trying to connect to server via GPRS then I am getting an error "<h1> Bad request </h1>".
    But when I pass the same url in browser then it will run fine or when i pass the url as a hardcoded in the http connection than an also it works fine.
    Anyone knows how can I overcome this issue?

    Thanks.
    Regards,
    Juned Ahmed

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: error in GPRS

    Quote Originally Posted by junedahmed View Post
    when i pass the url as a hardcoded in the http connection than an also it works fine
    What are you doing when it doesn't work?

    Graham.

  3. #3
    Registered User
    Join Date
    Jan 2010
    Location
    India
    Posts
    37

    Re: error in GPRS

    in which way you are using HttpConnection??

  4. #4
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: error in GPRS

    Quote Originally Posted by junedahmed View Post
    Hi to all,

    This is an urgent, when I trying to connect to server via GPRS then I am getting an error "<h1> Bad request </h1>".
    But when I pass the same url in browser then it will run fine or when i pass the url as a hardcoded in the http connection than an also it works fine.
    Anyone knows how can I overcome this issue?

    Thanks.
    Bad request due to issues in the URL encoding, try to remove the extra spaces by using url.trim();
    and check the proper URL encoding.

    Cut and Past the URL that you are trying to hit,

    PS: I feel its the extra scpaces only that's creating the problem - trim() should help.
    Thanks,
    Ekta

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    94

    Re: error in GPRS

    Sorry for the late reply, yeah you are right there was a space in the url.
    Thanks
    Regards,
    Juned Ahmed

Similar Threads

  1. wap/gprs howto?.. how to connect to gprs and send udp packets..
    By Bojankv in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2009-08-16, 14:16
  2. Replies: 0
    Last Post: 2009-01-15, 04:10
  3. GPRS connection error
    By irfan.khan in forum Symbian
    Replies: 2
    Last Post: 2008-08-12, 16:35
  4. error when creating GPRS connection
    By kenny2304 in forum Nokia M2M
    Replies: 3
    Last Post: 2004-11-11, 05:36
  5. GPRS error
    By sudipta2k in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2004-01-28, 11:42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×