Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Do I need to do anything before calling the API IWeb_GetResponse() ?

Currently, I am creating AEE Instances and calling IWeb_GetResponse(). I get an error ( -557 ie 0x22D ) when I call this API.

tanveer wrote:Do I need to do anything before calling the API IWeb_GetResponse() ?
Currently, I am creating AEE Instances and calling IWeb_GetResponse().
No need of implementing any socket, just create an instance for web and call
IWeb_GetResponse() for the same to achieve with required parameters
tanveer wrote:
I get an error ( -557 ie 0x22D ) when I call this API.
ru getting this error on all url's, check out by hitting any webserver and do share the code if ur problem is not solved.
i think u get -557 kinda of error mostly when u r server is down.

tanveer wrote:Do I need to do anything before calling the API IWeb_GetResponse() ?
Currently, I am creating AEE Instances and calling IWeb_GetResponse().
No need of implementing any socket, just create an instance for web and call
IWeb_GetResponse() for the same to achieve with required parameters
tanveer wrote:
I get an error ( -557 ie 0x22D ) when I call this API.
ru getting this error on all url's, check out by hitting any webserver and do share the code if ur problem is not solved.
i think u get -557 kinda of error mostly when u r server is down.

I am able to connect to the Server and do a HTTP POST at startup. But after few mins, when I use the same API, it gets back with -557 Error.
Server is up & running always.. :)
Another observation I would like to share is, at the startup there are few applications, which invoke the Browser and perform some data-activity ( Network Data-Icons are visible at startup. These usually come-up when theres a Network activity going on ). When I try to call the API at startup, the IWeb_GetResponse succeeds communicating to the Server with a ResponseCode of 200.
But same API fails after this point. :(
I feel that there could be something that is required by IWeb_GetResponse available at startup & becomes unavailable after sometime :confused: .

I am able to connect to the Server and do a HTTP POST at startup. But after few mins, when I use the same API, it gets back with -557 Error.
Server is up & running always.. :)
Another observation I would like to share is, at the startup there are few applications, which invoke the Browser and perform some data-activity ( Network Data-Icons are visible at startup. These usually come-up when theres a Network activity going on ). When I try to call the API at startup, the IWeb_GetResponse succeeds communicating to the Server with a ResponseCode of 200.
But same API fails after this point. :(
I feel that there could be something that is required by IWeb_GetResponse available at startup & becomes unavailable after sometime :confused: .

Hey I am facing the same problem. Did u find ne solution?

Hey I am facing the same problem. Did u find ne solution?

Good doc on the usage of IWeb
http://brewforums.qualcomm.com/attachment.php?attachmentid=526
Good luck..
BTW, pls share ur fixes with the forum.. It will help others very much..
Thanks

Good doc on the usage of IWeb
http://brewforums.qualcomm.com/attachment.php?attachmentid=526
Good luck..
BTW, pls share ur fixes with the forum.. It will help others very much..
Thanks

Hi ,
As I understand from the above posts, it seems, the same IWeb API stops working after a few successful runs.. I faced the very same problem. And later found that I was not releasing the IGetLine interface created for reading data from the ISource in teh HTTP Reply.
Make sure u r releasing all the buffers IGetLines,ISources
Good luck..
If u could resolve the issue, pls post the fix, so that others can also benefit..
Thanks

Hi ,
As I understand from the above posts, it seems, the same IWeb API stops working after a few successful runs.. I faced the very same problem. And later found that I was not releasing the IGetLine interface created for reading data from the ISource in teh HTTP Reply.
Make sure u r releasing all the buffers IGetLines,ISources
Good luck..
If u could resolve the issue, pls post the fix, so that others can also benefit..
Thanks