![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello,
i'm pretty new to Basic4PPC..:-) I used the trial version to evaluate if this language is suitable for my project.Now i purchased the full version.In the very first time i tested my program on the device, but later i used only the emulator on windows desktop because it is much more comfortable.I'm using an HP IPAQ 5450 with PocketPC 2003. Until now everything went ok so far, but now i discovered an issue related to the HTTP lib.I use an HTTP POST to send data to a webserver, which was working fine on the desktop emulator.When i tried it on the device, i'm getting an error message: Quote:
Quote:
After confirming this message Basic4PPC terminates. Using an network sniffer i can see, that the POST request is send to the server correctly, but the following message box with the error is preventing me from receiving/getting the server's response string. With desktop version / emulator everything works as expected, no error messages in that at all. I installed .Net CF 2, because the serial2.dll complaint about the CF 1. Other request, like GET or TRACE or OPTIONS are working fine, no error message. I calculate the content.length using StrLength(my POST DATA string) and compared the Content.Length in the HTTP Header with the number of characters in the network trace.I matches the content.length number. I need some help here to proceed with my project.Somehow i suspect the content.length to be the cause, but don't know what's wrong here. Furthermore i updated the HTTP Lib with the latest one, but did not make a difference. kind regards TWELVE Last edited by TWELVE : 04-24-2008 at 11:31 AM. |
|
||||
|
There must be an error in your code, when running on the device.
But you are missing a routine on your device to display error messages. Look at this: error messages on device Hope this will bring you a step forward. Best regards
__________________
Klaus Switzerland |
|
|||
|
Quote:
Nevertheless..i installed the mentioned enu-cabfile and get now this error message: Quote:
kind regards TWELVE |
|
||||
|
Can you send me your application to erel@basic4ppc.com ?
|
|
|||
|
Hi Erel,
this piece of code should reveal where the problem is.It always occurs with the POST method, all other methods ( GET, TRACE...) are working fine, as long as the server is supporting them.The issue only occurs on the device, on desktop everything is fine. Quote:
I also attached the source file, which also includes a small gui for easy testing. regards TWELVE |
|
||||
|
Thank you for this code.
There was a bug in the HTTP library. Please download the updated library and test it again: http://www.basic4ppc.com/forum/showt...1833#post11833 |
|
|||
|
Hi Erel,
the fixed http lib did the trick.Thanks a million...!!! I can now proceed with my project, which already contains 1000+ lines of code. I assume nobody here used a POST within his programs yet..? cheers TWELVE |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTTP POST error message | miataman | Questions & Help Needed | 10 | 07-11-2008 11:28 AM |
| HTTP POST error | Elrick | Bug Reports | 3 | 05-24-2008 03:06 PM |
| HTTP GetResponse error on device only | willisgt | Questions & Help Needed | 4 | 04-14-2008 06:18 PM |
| HTTP Post | nsidney | Questions & Help Needed | 4 | 01-30-2008 10:52 AM |
| HTTP Post | ohkovar | Questions & Help Needed | 3 | 07-07-2007 05:36 PM |