Discussion:
AdditionalHeaders truncated in PassThru APP
(too old to reply)
peter.boot
2008-06-25 07:53:01 UTC
Permalink
Igor

When using your PassThru APP example the *pszAdditionalHeaders value
is occasionally being truncated in the
CTestSink::BeginningTransaction( ..) method

After the code on line 24 HRESULT hr = spHttpNegotiate ?
spHttpNegotiate->BeginningTransaction(szURL, szHeaders,dwReserved,
pszAdditionalHeaders) : S_OK;

The first line of the value of pszAdditionalHeaders is sometimes
truncated, so for example the value is:
Referer:
http://direct.fairfax.com.au/hserver/SITE=ONL.MH.SMH.NEWS/AREA=NEWS.SMH.NEWS/CTYPE=INDEX/AAMSZ=620X45/PAGEID=719881/ACC_RANDOM=832680/CAT=NE
x-flash-version: 9,0,47,0

When it should be :
Referer:
http://direct.fairfax.com.au/hserver/SITE=ONL.MH.SMH.NEWS/AREA=NEWS.SMH.NEWS/CTYPE=INDEX/AAMSZ=620X45/PAGEID=719881/ACC_RANDOM=832680/CAT=NEWS/DOMAIN=SMH.COM.AU/SITE=SMH/ISIFRAME=YES/POS=1
x-flash-version: 9,0,47,0

Are you able to tell me where/how I could correct the problem ?

thanks

Peter
peter.boot
2008-06-25 09:21:05 UTC
Permalink
Post by peter.boot
Igor
When using your PassThru APP example the *pszAdditionalHeaders value
is occasionally being truncated in the
CTestSink::BeginningTransaction( ..) method
After the code on line 24 HRESULT hr = spHttpNegotiate ?
spHttpNegotiate->BeginningTransaction(szURL, szHeaders,dwReserved,
pszAdditionalHeaders) : S_OK;
The first line of the value of pszAdditionalHeaders is sometimes
Referer:http://direct.fairfax.com.au/hserver/SITE=ONL.MH.SMH.NEWS/AREA=NEWS.S...
x-flash-version: 9,0,47,0
Referer:http://direct.fairfax.com.au/hserver/SITE=ONL.MH.SMH.NEWS/AREA=NEWS.S...
x-flash-version: 9,0,47,0
Are you able to tell me where/how I could correct the problem ?
thanks
Peter
Threre is a pattern to it, the Referer header for swf files get
trancated at around 140 to 143 characters. You can see it for yourself
on cnn.com or smh.com.au
peter.boot
2008-06-25 09:28:43 UTC
Permalink
Post by peter.boot
Post by peter.boot
Igor
When using your PassThru APP example the *pszAdditionalHeaders value
is occasionally being truncated in the
CTestSink::BeginningTransaction( ..) method
After the code on line 24 HRESULT hr = spHttpNegotiate ?
spHttpNegotiate->BeginningTransaction(szURL, szHeaders,dwReserved,
pszAdditionalHeaders) : S_OK;
The first line of the value of pszAdditionalHeaders is sometimes
Referer:http://direct.fairfax.com.au/hserver/SITE=ONL.MH.SMH.NEWS/AREA=NEWS.S...
x-flash-version: 9,0,47,0
Referer:http://direct.fairfax.com.au/hserver/SITE=ONL.MH.SMH.NEWS/AREA=NEWS.S...
x-flash-version: 9,0,47,0
Are you able to tell me where/how I could correct the problem ?
thanks
Peter
Threre is a pattern to it, the Referer header for swf files get
trancated at around 140 to 143 characters. You can see it for yourself
on cnn.com or smh.com.au
sorry that should be truncated at around 140 to 143 characters
Igor Tandetnik
2008-06-25 12:07:32 UTC
Permalink
Post by peter.boot
When using your PassThru APP example the *pszAdditionalHeaders value
is occasionally being truncated in the
CTestSink::BeginningTransaction( ..) method
After the code on line 24 HRESULT hr = spHttpNegotiate ?
spHttpNegotiate->BeginningTransaction(szURL, szHeaders,dwReserved,
pszAdditionalHeaders) : S_OK;
The first line of the value of pszAdditionalHeaders is sometimes
http://direct.fairfax.com.au/hserver/SITE=ONL.MH.SMH.NEWS/AREA=NEWS.SMH.NEWS/CTYPE=INDEX/AAMSZ=620X45/PAGEID=719881/ACC_RANDOM=832680/CAT=NE
x-flash-version: 9,0,47,0
http://direct.fairfax.com.au/hserver/SITE=ONL.MH.SMH.NEWS/AREA=NEWS.SMH.NEWS/CTYPE=INDEX/AAMSZ=620X45/PAGEID=719881/ACC_RANDOM=832680/CAT=NEWS/DOMAIN=SMH.COM.AU/SITE=SMH/ISIFRAME=YES/POS=1
x-flash-version: 9,0,47,0
Are you able to tell me where/how I could correct the problem ?
You get the correct headers. I checked with a packet sniffer (Ethereal),
and in fact the request is sent with this truncated Referer header. I'm
not sure why this happens, but you are getting the same thing the server
will be getting.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
peter.boot
2008-06-25 12:21:57 UTC
Permalink
Post by Igor Tandetnik
Post by peter.boot
When using your PassThru APP example the *pszAdditionalHeaders value
is occasionally being truncated in the
CTestSink::BeginningTransaction( ..) method
After the code on line 24 HRESULT hr = spHttpNegotiate ?
spHttpNegotiate->BeginningTransaction(szURL, szHeaders,dwReserved,
pszAdditionalHeaders) : S_OK;
The first line of the value of pszAdditionalHeaders is sometimes
http://direct.fairfax.com.au/hserver/SITE=ONL.MH.SMH.NEWS/AREA=NEWS.S...
x-flash-version: 9,0,47,0
http://direct.fairfax.com.au/hserver/SITE=ONL.MH.SMH.NEWS/AREA=NEWS.S...
x-flash-version: 9,0,47,0
Are you able to tell me where/how I could correct the problem ?
You get the correct headers. I checked with a packet sniffer (Ethereal),
and in fact the request is sent with this truncated Referer header. I'm
not sure why this happens, but you are getting the same thing the server
will be getting.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
So just to clarify the what you are saying the truncated Referer
header what is being sent to the browser and so that is what is seen
by CTestSink::BeginningTransaction ? In other words this can't be
fixed ?
Igor Tandetnik
2008-06-25 12:56:24 UTC
Permalink
Post by peter.boot
Post by Igor Tandetnik
Post by peter.boot
The first line of the value of pszAdditionalHeaders is sometimes
http://direct.fairfax.com.au/hserver/SITE=ONL.MH.SMH.NEWS/AREA=NEWS.S...
x-flash-version: 9,0,47,0
http://direct.fairfax.com.au/hserver/SITE=ONL.MH.SMH.NEWS/AREA=NEWS.S...
x-flash-version: 9,0,47,0
Are you able to tell me where/how I could correct the problem ?
You get the correct headers. I checked with a packet sniffer
(Ethereal), and in fact the request is sent with this truncated
Referer header. I'm not sure why this happens, but you are getting
the same thing the server will be getting.
So just to clarify the what you are saying the truncated Referer
header what is being sent to the browser
It is being sent by the browser to the server.
Post by peter.boot
and so that is what is seen
by CTestSink::BeginningTransaction ? In other words this can't be
fixed ?
As far as the APP is concerned, it ain't broken in the first place. You
see the header exactly as the browser wants it sent to the server in an
HTTP request.

I don't know why the browser wants to send a truncated header, nor how
its decision could be influenced, if at all.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
peter.boot
2008-06-25 19:42:03 UTC
Permalink
ok thanks once again for your help Igor

Loading...