Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry® Device software

Reply
New Developer
andufo
Posts: 18
Registered: ‎10-13-2008
My Device: BB Curve 8310

Application using Http Post... getting error response

[ Edited ]

Im from Ecuador, and me and other 4 people from the same country are getting this error response when a native java application is trying to make a http post to mydomain.com


 

The requested URL could not be retrieved:

While trying to process the request:

 

POST /somedir/more?var1=abc&var2=xyz& HTTP/1.1

Expect: 100-continue

Host: mydomain.com

Content-Length: 40

Content-Type: text/plain; charset=utf-8

Accept: */*

Connection: close


Invalid request. Some aspect of the HTTP Request is nivalid. Possible problems:

 

Missing or unknwon request method

Missing URL

Missing HTTP Identifier (HTTP/1.0)

Request is too large

Content-Length missing for POST or PUT request

...

Generated by Blackberry.Internet.Browsing.Service (squd/2.7.STABLE6)


 

This issue is only happening in my country (Ecuador). I have some friends in Argentina and they have no problems at all. What are the posible causes for this problem?

Message Edited by andufo on 07-09-2009 08:43 PM
Contributor
BerryBlaster
Posts: 20
Registered: ‎07-10-2009
My Device: Not Specified

Re: Application using Http Post... getting error response

Hello andufo,


What is the application you are trying to use? Is it a custom made application? That error may be known to the provider of it, or included in their FAQ on their website.

 

From the error it seems that it was just rejected by the server because it was not a valid response it was expecting.

 

Thanks 

New Developer
andufo
Posts: 18
Registered: ‎10-13-2008
My Device: BB Curve 8310

Re: Application using Http Post... getting error response

Hi,

actually it is an application developed in our studio. It works on every country (more than 15.000 users by now) but it doesnt work where we live (Ecuador). The error comes from the carrier's server it self, and i need to know if there is a workaround for this issue.

 

Best regards,

Andufo

Contributor
BerryBlaster
Posts: 20
Registered: ‎07-10-2009
My Device: Not Specified

Re: Application using Http Post... getting error response

Well here are some followup questions,

 

What does the program actually do?

What is it trying to send when you submit a request?

What url is it posting the information to? 

Is it the 'exact' same application that works in other countries?

Is it supposed to be useing the Internet Browser?

Are you on a BlackBerry Enterprise Server?  

 

 

Cheers! 

New Developer
andufo
Posts: 18
Registered: ‎10-13-2008
My Device: BB Curve 8310

Re: Application using Http Post... getting error response

Hi again,

im attaching all the info you request:

 

What does the program actually do?

Social network (because of the TOS of this forum im not allowed to post project names or urls)

 

What is it trying to send when you submit a request?

What url is it posting the information to? 

Im attaching all this at the end of the post.

 

Is it the 'exact' same application that works in other countries?

Yeap, the exact same one...

 

Is it supposed to be useing the Internet Browser?

No, it is a native app. The Browser is not used at all.

 

Are you on a BlackBerry Enterprise Server? 

Im on BIS, all the users use BIS.

 

 

Technical details:

 

1) The app makes an Http Connection (POST) to:

http://mydomain.com/api/call?param1=abc&param2=xyz

 


2) This is the Http connection configuration:

httpConnection = (HttpConnection) Connector.open(url);
HttpConnection.POST;
("Content-Type", "text/plain; charset=utf-8");
("Host", 'mydomain.com');
("Content-Length", 100); //depends on sent data
("User-Agent", 'BlackBerry8300... etc');
("Expect", "100-continue");

3) On every country it works fine... on my country i get this error:

The requested URL could not be retrieved while trying to process the request:

POST /app/llamada?param1=abc&param2=xyz& HTTP/1.1
- Expect: 100-continue
- Host: mydomain.com
- Content-Length: 100
- Content-Type: text/plain; charset=utf-8
- Accept: */*
- Connection: close

Invalid request. Some aspect of the HTTP Request is invalid. Possible problems:
- Missing or unknwon request method
- Missing URL
- Missing HTTP Identifier (HTTP/1.0)
- Request is too large
- Content-Length missing for POST or PUT request
...
Generated by Blackberry.Internet.Browsing.Service (squid/2.7.STABLE6)
Contributor
BerryBlaster
Posts: 20
Registered: ‎07-10-2009
My Device: Not Specified

Re: Application using Http Post... getting error response

Hello andufo,

 

 Would it be possible to see the HTTP configuration of a known working device? Something about it doesnt look right to me, but I just cannot put my finger on it.

New Developer
andufo
Posts: 18
Registered: ‎10-13-2008
My Device: BB Curve 8310

Re: Application using Http Post... getting error response

That same configuration works for any device that is not on my operator (Ecuador > Porta).