![]() |
|
|||||||
| 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 |
|
|||
|
Hi,
My program on the device display error during the request http : "An error message cannot be displayed because an optional resource assembly containing it cannot be found Continue?" (On the desktop it's OK no display error). My device under framework 2 My project included objects -> Request:Webrequest Response:Webresponse my code : Response.new1 Request.new1("http://wwwmyserver.com/upload.php?lat="&lat) Response.value=Request.Getresponse Res=Response.GetString Response.close thanks for help ! stef ![]() |
|
||||
|
You are getting that error because the error messages are not installed on your device. See this thread error messages on device
|
|
||||
|
From Googling around I think this means that the server closed the TCP connection.
Engels Rajangam : The underlying connection was closed... This article suggests that setting WebRequest.KeepAlive to false might help with this sort of error - it defaults to true. |
|
|||
|
Quote:
- different headers might be used for troubleshooting ( TRACE header for example would instruct the server to return the packets you sent to it). In case of issues with the http i would not start with POST, because that's the most difficult.Instead he should try a GET first to see how the server answers. - a network sniffer like WireShark might be used to figure out where the problem is very quickly - if one is familar with the usage of these tools. For me a sniffer is the first choice because i can see what's going on there immediatly. Quote:
As i already said above, POST is not a good point to start with.Once a GET is working, this would be the proof that the routines work in general and the internet connection is ok.One could then proceed to test with POST headers. From my personal experience ( i also do a lot with these POSTs on the device) i would say, the error message mean, there is either a problem with the internet connection itself, the server connection ( does not accept the connection) or the DNS name resolution. I also use an errorhandler in my http send routine and whenever the errorhandler traps an error this means i do not have established an internet connection.Therefore i use this as indicator whether the connection is there or not ( due to lack of description of the error - i do not use your new library yet which returns descriptions ...;-) ) kind regards TWELVE Last edited by TWELVE : 06-12-2008 at 01:17 PM. |
|
|||
|
Hi, TWELVE,
Can you share some routine of using POST method? I want to submit some data to the web server, and the string is very large and cannot use the GET method (it works). I am looking for code snippet for doing this using http.dll. For example, i want to submit two set of text with name a and b. In the server side, I have a php script which use $_POST['a'] and $_POST['b'] to read these 2 data. I am now have problem of how to pass these two parameter in basic4ppc. Tks in advance. Cheers. Kawawong |
|
||||
|
Quote:
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
![]() |
| 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 | Elrick | Bug Reports | 3 | 05-24-2008 03:06 PM |
| HTTP Post fails if Umlauts sent and UTF-8 is used | TWELVE | Questions & Help Needed | 11 | 04-29-2008 11:13 AM |
| HTTP POST on Device - error message | TWELVE | Questions & Help Needed | 6 | 04-26-2008 10:35 AM |
| 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 |