put this at top of include file
class Settings
{
public:
/*! @var port number to connect to */
TInt iPort;
/*! @var server name to connect to */
TBuf<50> ...
Type: Posts; User: oledocmeth; Keyword(s):
put this at top of include file
class Settings
{
public:
/*! @var port number to connect to */
TInt iPort;
/*! @var server name to connect to */
TBuf<50> ...
use TBuf8 instead
Look at the Send() function for HTTP Headers, also you might want to URLEncode your data, use the Encode function.
http://discussion.forum.nokia.com/forum/showthread.php?s=&postid=62798#post62798
you might convert your array of data to a base64 encoded string (or file). Then you can use my code to upload it as an HTTP Post to a server.
...
maybe thiss will help you
http://discussion.forum.nokia.com/forum/showthread.php?s=&postid=62798#post62798
This might be a problem with UniCode (16 bit) charactes and ASCII (8 bit) characters.
try doing something like this to buf to get the lower 8 bits of each character -
for (TInt j=0; j <...
I have found that using a buffer for a receive can get overwritten by the next receive. I changed my code to use a linked list and store each packet in a different object.
...
Don't know if this will help, I keep the received packets on a linked list instead of a large string.
http://discussion.forum.nokia.com/forum/showthread.php?s=&postid=62798#post62798
Check the DoCancel function in my example - might help you out.
http://discussion.forum.nokia.com/forum/showthread.php?s=&postid=62798#post62798
I use this code to upload the contents of a file in an HTTP POST. Maybe it can help you?
http://discussion.forum.nokia.com/forum/showthread.php?s=&postid=62798#post62798
maybe my code can help you
http://discussion.forum.nokia.com/forum/showthread.php?s=&postid=62798#post62798
http://discussion.forum.nokia.com/forum/showthread.php?s=&postid=62798#post62798
http://discussion.forum.nokia.com/forum/showthread.php?s=&postid=62798#post62798
This can be changed to a GET
http://discussion.forum.nokia.com/forum/showthread.php?s=&postid=62798#post62798
http://discussion.forum.nokia.com/forum/showthread.php?s=&postid=62798#post62798
http://discussion.forum.nokia.com/forum/showthread.php?s=&postid=62798#post62798
I wonder if my code here will help you - if you base64 encode your image to a file this code will usrl encode it and send it to the server as a HTTP POST.
If this helps you then I would like to...
follow the link
http://discussion.forum.nokia.com/forum/showthread.php?s=&postid=62798#post62798
http://discussion.forum.nokia.com/forum/showthread.php?s=&postid=62798#post62798
In this case look in the IssueRequest and RunL functions
http://discussion.forum.nokia.com/forum/showthread.php?s=&postid=62798#post62798
Xmit.h:
#ifndef __XMIT_H__
#define __XMIT_H__
#include <es_sock.h>
#include <in_sock.h>
#include <e32std.h>
class myElement
Yes, I am using an active object - here is a stripped version of my working code.
This code emulates a HTTP POST to a web server and gets the response.
(Just took out unneeded code, did not try...
whenever I got the -2147483647 I would use User::WaitForRequest(iRecvStatus); to pause the receive code. This seems to have solved my problems, I believe now that it indicates that I was accessing...
Can any one explain what this error code means?
I sometimes get a - 2147483647 as the status when using a Recv or RecvOneOrMore function.
This error sometimes occurs on the last packet not...