473,750 Members | 2,211 Online
Bytes | Software Development & Data Engineering Community
+ 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 /FileReceiveServ er.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.f ujifilmesys.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:\\p 2\\ritz\\Flower 1.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="RequestTy pe"
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
TotalNumOfImage s: 1
Set-Cookie: ASP.NET_Session Id=ljv4zie1ixvy a0y1kxopvpzb; path=/
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 33
Result=SUCCESS& TotalNumOfImage s=1

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

POST /FileReceiveServ er.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.f ujifilmesys.com
Content-Length: 12908
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ASP.NET_Session Id=vonbs445h24w rjumj1ezpp45
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:\DO CUME~1\ADMINI~1 \LOCALS~1\Temp\ SmartServices\F lower1.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
TotalNumOfImage s: 1
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 33
Result=SUCCESS& TotalNumOfImage s=1

Nov 19 '05 #1
1 1659
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
5410
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 reduced in size to a more narrow dimension, Internet Explorer forces the picture down the page, which is not at all desirable. This same behavior does not happen in Firefox. Can anyone offer a solution to prevent this from occurring without...
4
5150
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 "../empLib/empImg.h"
7
1970
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 with the form data. Under Windowx XP SP2 the IE6 "Information Bar" has the message: "To help protect your security, Internet Explorer has restricted this
11
4467
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 because of an exception that gets thrown when I call delete ipAddress; in the destructor - ~TrapDestination () :
38
3390
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 displaying this instead: http://www.duke.edu/~efn/pic.jpg. This problem didn't used to occur, and it doesn't happen on Firefox. Is there some way I can alter the script of the top frame http://www.duke.edu/~efn/top.html to prevent this from happening?...
6
5538
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 0x00300160 (Press Retry to debug the application) ------------------
1
2392
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): CRichEditCtrl* ctrl = &GetRichEditCtrl(); int lineLen = ctrl->LineLength(lineNum); char* buf = new char; ctrl->GetLine(lineNum, buf, lineLen);
3
1455
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 <set> #include <stack> #include <sstream>
0
1227
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 restoration procedures must be followed. It is not as simple as just sucking up the water and cleaning the carpet and letting the area dry naturally. It is not the wet carpet that is the problem it is the underlay and the wood or concrete floor...
0
8999
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9575
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9338
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9256
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8260
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6803
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6080
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2223
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.