473,473 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Content Damage

I have a WinINet communicating with an integration server
(X-AspNet-Version: 1.1.4322) using form posts.

One form post that includes jpeg content. However, the data received
at the server is missing bytes from the beginning of the jpeg. It
could be that the whole exif header that has been stripped.

I can upload the same jpeg successfully using a .htm with Internet
Explorer. Using a port sniffer and diff tools, I can verify that the
image content is identical and the final server response is identical.

The integration server occasionally sends "HTTP/1.1 100 Continue"
messages. I noticed that Internet Explorer responds with a single '!'
character. WinINet appears to ignore continue messages.

The Explorer post uses form-encoded content rather than headers.
However, I've been assured that both formats are okay and the server
response is the same.

I've included the successful post and the unsuccessful post below. Any
idea what could cause the content mutilation? Thanks in advance,

- Ashok Thirumurthi
*******************
SUCCESSFUL POST
*******************

00000000: (UDP/IP) Sending Packet, 13.09.2005 10:13:42.093
iexplore.exe (1656)
127.0.0.1:1181 ® 127.0.0.1:1181
Size: 1 bytes

!
00000001: (UDP/IP) Receiving Datagram, 13.09.2005 10:13:42.093
iexplore.exe (1656)
127.0.0.1:1181 ® 127.0.0.1:1181
Size: 1 bytes

!
00000000: (TCP/IP) Sending Packet, 13.09.2005 10:13:42.156
iexplore.exe (1656)
0.0.0.0:1217 ® 65.249.156.108:80
Size: 554 bytes

POST /FileReceiveServer.aspx HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, application/x-shockwave-flash, */*
Accept-Language: en-us
Content-Type: multipart/form-data;
boundary=---------------------------7d54e2ae06e0
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
..NET CLR 1.1.4322)
Host: stage.binxfer.fujifilmesys.com
Content-Length: 13400
Connection: Keep-Alive
Cache-Control: no-cache
00000002: (UDP/IP) Sending Packet, 13.09.2005 10:13:42.156
iexplore.exe (1656)
127.0.0.1:1181 ® 127.0.0.1:1181
Size: 1 bytes

!

00000003: (UDP/IP) Receiving Datagram, 13.09.2005 10:13:42.156
iexplore.exe (1656)
127.0.0.1:1181 ® 127.0.0.1:1181
Size: 1 bytes

!

00000001: (TCP/IP) Sending Packet, 13.09.2005 10:13:42.156
iexplore.exe (1656)
0.0.0.0:1217 ® 65.249.156.108:80
Size: 8 Kbytes (8192 bytes)

-----------------------------7d54e2ae06e0
Content-Disposition: form-data; name="f1";
filename="c:\\p2\\ritz\\Flower1.jpg"
Content-Type: image/pjpeg
ÿØÿá
ÑExif..II*...........!...’...........´...........Æ .................<More
image data here>

00000002: (TCP/IP) Receiving Packet, 13.09.2005 10:13:42.218
iexplore.exe (1656)
65.249.156.108:80 ® 0.0.0.0:1217
Size: 25 bytes

HTTP/1.1 100 Continue
00000004: (UDP/IP) Sending Packet, 13.09.2005 10:13:42.390
iexplore.exe (1656)
127.0.0.1:1181 ® 127.0.0.1:1181
Size: 1 bytes

!

00000003: (TCP/IP) Sending Packet, 13.09.2005 10:13:42.390
iexplore.exe (1656)
0.0.0.0:1217 ® 65.249.156.108:80
Size: 5 Kbytes (5208 bytes)

<More image data here>
-----------------------------7d54e2ae06e0
Content-Disposition: form-data; name="Submit1"
Submit Query
-----------------------------7d54e2ae06e0
Content-Disposition: form-data; name="AppKey"
D463-7272-ED59-DEA1
-----------------------------7d54e2ae06e0
Content-Disposition: form-data; name="RequestType"
file20
-----------------------------7d54e2ae06e0
Content-Disposition: form-data; name="BatchID"
11983
-----------------------------7d54e2ae06e0
Content-Disposition: form-data; name="UserID"
125341
-----------------------------7d54e2ae06e0--
00000004: (TCP/IP) Receiving Packet, 13.09.2005 10:13:43.171
iexplore.exe (1656)
65.249.156.108:80 ® 0.0.0.0:1217
Size: 353 bytes

HTTP/1.1 200 OK
Date: Tue, 13 Sep 2005 14:13:38 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Result: SUCCESS
TotalNumOfImages: 1
Set-Cookie: ASP.NET_SessionId=ljv4zie1ixvya0y1kxopvpzb; path=/
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 33
Result=SUCCESS&TotalNumOfImages=1

*******************
UNSUCCESSFUL POST
*******************

POST /FileReceiveServer.aspx HTTP/1.1
RequestType: file20
AppKey: D463-7272-ED59-DEA1
UserID: 125341
BatchID: 12052
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, application/x-shockwave-flash, */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Content-Type: multipart/form-data;
boundary=---------------------------7d49538b031e
User-Agent: PictureProject Ritz Uploader
Host: stage.binxfer.fujifilmesys.com
Content-Length: 12908
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ASP.NET_SessionId=vonbs445h24wrjumj1ezpp45
00000024: (TCP/IP) Sending Packet, 13.09.2005 09:08:09.796
NkbPProj.exe (2836)
0.0.0.0:1178 ® 65.249.156.108:80
Size: 186 bytes

-----------------------------7d49538b031e
Content-Disposition: form-data; name="f1";
filename="C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Smart Services\Flower1.jpg"
Content-Type: image/pjpeg
00000025: (TCP/IP) Sending Packet, 13.09.2005 09:08:09.796
NkbPProj.exe (2836)
0.0.0.0:1178 ® 65.249.156.108:80
Size: 4 Kbytes (4096 bytes)

ÿØÿá
ÑExif..II*...........!...’...........´...........Æ .................
<More Image Data Here>

00000026: (TCP/IP) Sending Packet, 13.09.2005 09:08:09.796
NkbPProj.exe (2836)
0.0.0.0:1178 ® 65.249.156.108:80
Size: 4 Kbytes (4096 bytes)

<More image data here>

00000027: (TCP/IP) Sending Packet, 13.09.2005 09:08:09.796
NkbPProj.exe (2836)
0.0.0.0:1178 ® 65.249.156.108:80
Size: 4 Kbytes (4096 bytes)

<More image data here>

00000028: (TCP/IP) Receiving Packet, 13.09.2005 09:08:09.859
NkbPProj.exe (2836)
65.249.156.108:80 ® 0.0.0.0:1178
Size: 25 bytes

HTTP/1.1 100 Continue
00000029: (TCP/IP) Sending Packet, 13.09.2005 09:08:09.859
NkbPProj.exe (2836)
0.0.0.0:1178 ® 65.249.156.108:80
Size: 387 bytes

<More image data here>

00000030: (TCP/IP) Sending Packet, 13.09.2005 09:08:09.890
NkbPProj.exe (2836)
0.0.0.0:1178 ® 65.249.156.108:80
Size: 47 bytes
-----------------------------7d49538b031e--
00000031: (TCP/IP) Receiving Packet, 13.09.2005 09:08:10.281
NkbPProj.exe (2836)
65.249.156.108:80 ® 0.0.0.0:1178
Size: 289 bytes

HTTP/1.1 200 OK
Date: Tue, 13 Sep 2005 13:08:05 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Result: SUCCESS
TotalNumOfImages: 1
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 33
Result=SUCCESS&TotalNumOfImages=1

Nov 19 '05 #1
1 1647
For those who follow, a blank line was missing between the Content-Type
and the image data. That caused the data before the first 0x0A 0x0A
sequence in the image to be interpreted as part of the Content-Type,

- Ashok

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: mercurius_1 | last post by:
I am having a problem with content being wrapped down the page in Internet Explorer. This is the page in question, which I have validated: www.lynngoldstein.com When the browser window is...
4
by: Chucker | last post by:
Hi Folks, I got an error that drives me crazy because it only occurs sometimes and I can`t even reproduce it. I got a __gc class here is it`s header: #pragma once #include...
7
by: McKirahan | last post by:
What is "active content"? My ASP page just returns HTML.... I have a page with an .htm extension that has a form whose action is an ASP page which generates a report after updating a database...
11
by: Meghavvarnam | last post by:
Hi all, I just joined this group and am new to VC++. I wrote the code following the next para in C++ and used VC++ 6.0 Enterprise Edition to build and test. I had the following error message...
38
by: Emmett | last post by:
I have a simple jacascript that randomizes the background of the top frame of my webpage http://www.duke.edu/~efn. For some reason, my Internet Explorer started blocking the background and...
6
by: Anuradha | last post by:
Below is the code which was written VC++ 6.0 under windows environment. Executing the same throws: ------------------ Debug Error! Program: ccheck.exe DAMAGE: after normal block (#41) at...
1
by: Adam Clauss | last post by:
I have a doc/view app w/ a CRichEditView. In it, I define: void CSyntaxView::ParseLine(long lineNum); This function starts off by getting the text of the specified line (into a CString): ...
3
by: raan | last post by:
Whats wrong with the code ? delete tp; is throwing DAMAGE: After normal block(#56) at 0x00321480 Environment, VS2003, XP #include <iostream> #include <fstream> #include <string> #include...
0
by: Now You Know | last post by:
Water Damage Restoration 24 hour open 7 Days Phone 1 877 364 5264 When disaster strikes such as a washing machine overflow, bath overflow, burst pipe, rainwater from balcony etc, water damage...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.