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

Developer

Forums

Forums:

Hi friends:
I'm trying to upload a file, so i use:

IWEB_GetResponse(pApp->m_pIWeb, (pApp->m_pIWeb, &(pApp-m_pIWebResp), &(pApp->m_rUploadCB),
"http://localhost:8080/servlets-examples/servlet/FileUpload",
WEBOPT_HANDLERDATA, pApp,
WEBOPT_STATUSHANDLER, Compras_WebStatusNotification,
WEBOPT_HEADER, "X-Method: POST\r\nContent-Type: application/x-www-form-urlencoded\r\n",
WEBOPT_METHOD, "POST",
WEBOPT_BODY, pApp->m_pISource,
WEBOPT_CONTENTLENGTH, pFileInfo.dwSize,
WEBOPT_END));

for viewing the traffic i use the HTTPLook, and it gets:

POST /servlets-examples/servlet/FileUpload HTTP/1.1
Host: localhost:8080
User-Agent: BREW-Applet/0x01010101 (BREW/3.1.3.11; DeviceId: 0; Lang: en)
Content-Length: 169
Connection: Keep-Alive
X-Method: POST
Content-Type: application/x-www-form-urlencoded

Like you see, it looks like good, but when i see the file created in server-side, there's nothing, so the servlet only creates the file, but i think it doesn´t read the stream that i am sending it by brew.

I use the debugger for seeing if brew is sending the file with:
if (ISOURCEUTIL_GetLineFromSource(pApp->m_pSUtil, pApp->m_pISource, 500, &piGetLine))
return FALSE;

ret_val = IGETLINE_GetLine(piGetLine, &gl, IGETLINE_CRLF);

and, certainly it's sending data.

I don't know what's happening. Does anyone could help me, please?

JBrew.

Hi friends:
I'm trying to upload a file, so i use:
IWEB_GetResponse(pApp->m_pIWeb, (pApp->m_pIWeb, &(pApp-m_pIWebResp), &(pApp->m_rUploadCB),
"http://localhost:8080/servlets-examples/servlet/FileUpload",
WEBOPT_HANDLERDATA, pApp,
WEBOPT_STATUSHANDLER, Compras_WebStatusNotification,
WEBOPT_HEADER, "X-Method: POST\r\nContent-Type: application/x-www-form-urlencoded\r\n",
WEBOPT_METHOD, "POST",
WEBOPT_BODY, pApp->m_pISource,
WEBOPT_CONTENTLENGTH, pFileInfo.dwSize,
WEBOPT_END));
for viewing the traffic i use the HTTPLook, and it gets:
POST /servlets-examples/servlet/FileUpload HTTP/1.1
Host: localhost:8080
User-Agent: BREW-Applet/0x01010101 (BREW/3.1.3.11; DeviceId: 0; Lang: en)
Content-Length: 169
Connection: Keep-Alive
X-Method: POST
Content-Type: application/x-www-form-urlencoded
Like you see, it looks like good, but when i see the file created in server-side, there's nothing, so the servlet only creates the file, but i think it doesn´t read the stream that i am sending it by brew.
I use the debugger for seeing if brew is sending the file with:
if (ISOURCEUTIL_GetLineFromSource(pApp->m_pSUtil, pApp->m_pISource, 500, &piGetLine))
return FALSE;
ret_val = IGETLINE_GetLine(piGetLine, &gl, IGETLINE_CRLF);
and, certainly it's sending data.
I don't know what's happening. Does anyone could help me, please?
JBrew.

Hi friends:
I'm trying to upload a file, so i use:
IWEB_GetResponse(pApp->m_pIWeb, (pApp->m_pIWeb, &(pApp-m_pIWebResp), &(pApp->m_rUploadCB),
"http://localhost:8080/servlets-examples/servlet/FileUpload",
WEBOPT_HANDLERDATA, pApp,
WEBOPT_STATUSHANDLER, Compras_WebStatusNotification,
WEBOPT_HEADER, "X-Method: POST\r\nContent-Type: application/x-www-form-urlencoded\r\n",
WEBOPT_METHOD, "POST",
WEBOPT_BODY, pApp->m_pISource,
WEBOPT_CONTENTLENGTH, pFileInfo.dwSize,
WEBOPT_END));
for viewing the traffic i use the HTTPLook, and it gets:
POST /servlets-examples/servlet/FileUpload HTTP/1.1
Host: localhost:8080
User-Agent: BREW-Applet/0x01010101 (BREW/3.1.3.11; DeviceId: 0; Lang: en)
Content-Length: 169
Connection: Keep-Alive
X-Method: POST
Content-Type: application/x-www-form-urlencoded
Like you see, it looks like good, but when i see the file created in server-side, there's nothing, so the servlet only creates the file, but i think it doesn´t read the stream that i am sending it by brew.
I use the debugger for seeing if brew is sending the file with:
if (ISOURCEUTIL_GetLineFromSource(pApp->m_pSUtil, pApp->m_pISource, 500, &piGetLine))
return FALSE;
ret_val = IGETLINE_GetLine(piGetLine, &gl, IGETLINE_CRLF);
and, certainly it's sending data.
I don't know what's happening. Does anyone could help me, please?
JBrew.

Hi friends:
I'm trying to upload a file, so i use:
IWEB_GetResponse(pApp->m_pIWeb, (pApp->m_pIWeb, &(pApp-m_pIWebResp), &(pApp->m_rUploadCB),
"http://localhost:8080/servlets-examples/servlet/FileUpload",
WEBOPT_HANDLERDATA, pApp,
WEBOPT_STATUSHANDLER, Compras_WebStatusNotification,
WEBOPT_HEADER, "X-Method: POST\r\nContent-Type: application/x-www-form-urlencoded\r\n",
WEBOPT_METHOD, "POST",
WEBOPT_BODY, pApp->m_pISource,
WEBOPT_CONTENTLENGTH, pFileInfo.dwSize,
WEBOPT_END));
for viewing the traffic i use the HTTPLook, and it gets:
POST /servlets-examples/servlet/FileUpload HTTP/1.1
Host: localhost:8080
User-Agent: BREW-Applet/0x01010101 (BREW/3.1.3.11; DeviceId: 0; Lang: en)
Content-Length: 169
Connection: Keep-Alive
X-Method: POST
Content-Type: application/x-www-form-urlencoded
Like you see, it looks like good, but when i see the file created in server-side, there's nothing, so the servlet only creates the file, but i think it doesn´t read the stream that i am sending it by brew.
I use the debugger for seeing if brew is sending the file with:
if (ISOURCEUTIL_GetLineFromSource(pApp->m_pSUtil, pApp->m_pISource, 500, &piGetLine))
return FALSE;
ret_val = IGETLINE_GetLine(piGetLine, &gl, IGETLINE_CRLF);
and, certainly it's sending data.
I don't know what's happening. Does anyone could help me, please?
JBrew.

Hi friends:
I'm trying to upload a file, so i use:
IWEB_GetResponse(pApp->m_pIWeb, (pApp->m_pIWeb, &(pApp-m_pIWebResp), &(pApp->m_rUploadCB),
"http://localhost:8080/servlets-examples/servlet/FileUpload",
WEBOPT_HANDLERDATA, pApp,
WEBOPT_STATUSHANDLER, Compras_WebStatusNotification,
WEBOPT_HEADER, "X-Method: POST\r\nContent-Type: application/x-www-form-urlencoded\r\n",
WEBOPT_METHOD, "POST",
WEBOPT_BODY, pApp->m_pISource,
WEBOPT_CONTENTLENGTH, pFileInfo.dwSize,
WEBOPT_END));
for viewing the traffic i use the HTTPLook, and it gets:
POST /servlets-examples/servlet/FileUpload HTTP/1.1
Host: localhost:8080
User-Agent: BREW-Applet/0x01010101 (BREW/3.1.3.11; DeviceId: 0; Lang: en)
Content-Length: 169
Connection: Keep-Alive
X-Method: POST
Content-Type: application/x-www-form-urlencoded
Like you see, it looks like good, but when i see the file created in server-side, there's nothing, so the servlet only creates the file, but i think it doesn´t read the stream that i am sending it by brew.
I use the debugger for seeing if brew is sending the file with:
if (ISOURCEUTIL_GetLineFromSource(pApp->m_pSUtil, pApp->m_pISource, 500, &piGetLine))
return FALSE;
ret_val = IGETLINE_GetLine(piGetLine, &gl, IGETLINE_CRLF);
and, certainly it's sending data.
I don't know what's happening. Does anyone could help me, please?
JBrew.

Hi friends:
I'm trying to upload a file, so i use:
IWEB_GetResponse(pApp->m_pIWeb, (pApp->m_pIWeb, &(pApp-m_pIWebResp), &(pApp->m_rUploadCB),
"http://localhost:8080/servlets-examples/servlet/FileUpload",
WEBOPT_HANDLERDATA, pApp,
WEBOPT_STATUSHANDLER, Compras_WebStatusNotification,
WEBOPT_HEADER, "X-Method: POST\r\nContent-Type: application/x-www-form-urlencoded\r\n",
WEBOPT_METHOD, "POST",
WEBOPT_BODY, pApp->m_pISource,
WEBOPT_CONTENTLENGTH, pFileInfo.dwSize,
WEBOPT_END));
for viewing the traffic i use the HTTPLook, and it gets:
POST /servlets-examples/servlet/FileUpload HTTP/1.1
Host: localhost:8080
User-Agent: BREW-Applet/0x01010101 (BREW/3.1.3.11; DeviceId: 0; Lang: en)
Content-Length: 169
Connection: Keep-Alive
X-Method: POST
Content-Type: application/x-www-form-urlencoded
Like you see, it looks like good, but when i see the file created in server-side, there's nothing, so the servlet only creates the file, but i think it doesn´t read the stream that i am sending it by brew.
I use the debugger for seeing if brew is sending the file with:
if (ISOURCEUTIL_GetLineFromSource(pApp->m_pSUtil, pApp->m_pISource, 500, &piGetLine))
return FALSE;
ret_val = IGETLINE_GetLine(piGetLine, &gl, IGETLINE_CRLF);
and, certainly it's sending data.
I don't know what's happening. Does anyone could help me, please?
JBrew.

Hi friends:
I'm trying to upload a file, so i use:
IWEB_GetResponse(pApp->m_pIWeb, (pApp->m_pIWeb, &(pApp-m_pIWebResp), &(pApp->m_rUploadCB),
"http://localhost:8080/servlets-examples/servlet/FileUpload",
WEBOPT_HANDLERDATA, pApp,
WEBOPT_STATUSHANDLER, Compras_WebStatusNotification,
WEBOPT_HEADER, "X-Method: POST\r\nContent-Type: application/x-www-form-urlencoded\r\n",
WEBOPT_METHOD, "POST",
WEBOPT_BODY, pApp->m_pISource,
WEBOPT_CONTENTLENGTH, pFileInfo.dwSize,
WEBOPT_END));
for viewing the traffic i use the HTTPLook, and it gets:
POST /servlets-examples/servlet/FileUpload HTTP/1.1
Host: localhost:8080
User-Agent: BREW-Applet/0x01010101 (BREW/3.1.3.11; DeviceId: 0; Lang: en)
Content-Length: 169
Connection: Keep-Alive
X-Method: POST
Content-Type: application/x-www-form-urlencoded
Like you see, it looks like good, but when i see the file created in server-side, there's nothing, so the servlet only creates the file, but i think it doesn´t read the stream that i am sending it by brew.
I use the debugger for seeing if brew is sending the file with:
if (ISOURCEUTIL_GetLineFromSource(pApp->m_pSUtil, pApp->m_pISource, 500, &piGetLine))
return FALSE;
ret_val = IGETLINE_GetLine(piGetLine, &gl, IGETLINE_CRLF);
and, certainly it's sending data.
I don't know what's happening. Does anyone could help me, please?
JBrew.

Hi friends:
I'm trying to upload a file, so i use:
IWEB_GetResponse(pApp->m_pIWeb, (pApp->m_pIWeb, &(pApp-m_pIWebResp), &(pApp->m_rUploadCB),
"http://localhost:8080/servlets-examples/servlet/FileUpload",
WEBOPT_HANDLERDATA, pApp,
WEBOPT_STATUSHANDLER, Compras_WebStatusNotification,
WEBOPT_HEADER, "X-Method: POST\r\nContent-Type: application/x-www-form-urlencoded\r\n",
WEBOPT_METHOD, "POST",
WEBOPT_BODY, pApp->m_pISource,
WEBOPT_CONTENTLENGTH, pFileInfo.dwSize,
WEBOPT_END));
for viewing the traffic i use the HTTPLook, and it gets:
POST /servlets-examples/servlet/FileUpload HTTP/1.1
Host: localhost:8080
User-Agent: BREW-Applet/0x01010101 (BREW/3.1.3.11; DeviceId: 0; Lang: en)
Content-Length: 169
Connection: Keep-Alive
X-Method: POST
Content-Type: application/x-www-form-urlencoded
Like you see, it looks like good, but when i see the file created in server-side, there's nothing, so the servlet only creates the file, but i think it doesn´t read the stream that i am sending it by brew.
I use the debugger for seeing if brew is sending the file with:
if (ISOURCEUTIL_GetLineFromSource(pApp->m_pSUtil, pApp->m_pISource, 500, &piGetLine))
return FALSE;
ret_val = IGETLINE_GetLine(piGetLine, &gl, IGETLINE_CRLF);
and, certainly it's sending data.
I don't know what's happening. Does anyone could help me, please?
JBrew.

Hi friends:
I'm trying to upload a file, so i use:
IWEB_GetResponse(pApp->m_pIWeb, (pApp->m_pIWeb, &(pApp-m_pIWebResp), &(pApp->m_rUploadCB),
"http://localhost:8080/servlets-examples/servlet/FileUpload",
WEBOPT_HANDLERDATA, pApp,
WEBOPT_STATUSHANDLER, Compras_WebStatusNotification,
WEBOPT_HEADER, "X-Method: POST\r\nContent-Type: application/x-www-form-urlencoded\r\n",
WEBOPT_METHOD, "POST",
WEBOPT_BODY, pApp->m_pISource,
WEBOPT_CONTENTLENGTH, pFileInfo.dwSize,
WEBOPT_END));
for viewing the traffic i use the HTTPLook, and it gets:
POST /servlets-examples/servlet/FileUpload HTTP/1.1
Host: localhost:8080
User-Agent: BREW-Applet/0x01010101 (BREW/3.1.3.11; DeviceId: 0; Lang: en)
Content-Length: 169
Connection: Keep-Alive
X-Method: POST
Content-Type: application/x-www-form-urlencoded
Like you see, it looks like good, but when i see the file created in server-side, there's nothing, so the servlet only creates the file, but i think it doesn´t read the stream that i am sending it by brew.
I use the debugger for seeing if brew is sending the file with:
if (ISOURCEUTIL_GetLineFromSource(pApp->m_pSUtil, pApp->m_pISource, 500, &piGetLine))
return FALSE;
ret_val = IGETLINE_GetLine(piGetLine, &gl, IGETLINE_CRLF);
and, certainly it's sending data.
I don't know what's happening. Does anyone could help me, please?
JBrew.

Stop posting the same thing over and over.

Stop posting the same thing over and over.

So sorry, i thought i was posting to the other brew version's forums. But please... help me.

So sorry, i thought i was posting to the other brew version's forums. But please... help me.