Background Intelligent File Transfer (BITS)

630 views
Skip to first unread message

Sean

unread,
Jun 27, 2011, 7:12:55 PM6/27/11
to Fiddler
I cannot find a way to successfully mimic Background Intelligent File
Transfer (BITS) http-POSTS via Visual Studio web tests, from captured
sessions.



The unsuccessful REQUEST via VS2010 WebTest, from capturing a Fiddler
session:

HEADER:
BITS_POST http://BitsWebServer/BITS/a5d70f1c-82d9-46a4-94d8-6066b54b79ec.FILE
HTTP/1.1

Accept: */*

User-Agent: Microsoft BITS/7.5

BITS-Packet-Type: Create-Session

BITS-Supported-Protocols: {7df0354d-249b-430f-820d-3d2a9bef4931}

Accept-Language: en-US

Accept-Encoding: GZIP

Host: v-dev-app-009

Connection: Keep-Alive

RESPONSE: HTTP/1.1 500 Internal Server Error

--------------------------------------------------------------------------------



Successful REQUEST via Microsoft supported PowerShell script (Fiddler
captured session):

HEADER:
BITS_POST http://BitsWebServer/BITS/a5d70f1c-82d9-46a4-94d8-6066b54b79ec.FILE
HTTP/1.1

Accept: */*

User-Agent: Microsoft BITS/7.5

BITS-Packet-Type: Create-Session

BITS-Supported-Protocols: {7df0354d-249b-430f-820d-3d2a9bef4931}

Connection: Keep-Alive

Content-Length: 0

Host: v-dev-app-009

RESPONSE: HTTP/1.1 200 OK
-----------------------------------------------------------------------------------

Any ideas how I can use Fiddler (or Fiddler captures) to help me test
our BITS upload/download functionality?

EricLaw

unread,
Jun 28, 2011, 10:58:50 AM6/28/11
to Fiddler
I'm not sure I understand how PowerShell plays into this.

If you reissue a given request with Fiddler, does it work?

Is the HTTP-method really "BITS_POST" or is this just an artifact of
whatever tool you're using for display?

It *seems* like a likely explanation is that the server is expecting a
Content-Length header but the Visual Studio client isn't providing
one?

On Jun 27, 4:12 pm, Sean <seanksulli...@gmail.com> wrote:
> I cannot find a way to successfully mimic Background Intelligent File
> Transfer (BITS) http-POSTS via Visual Studio web tests, from captured
> sessions.
>
> The unsuccessful REQUEST via VS2010 WebTest, from capturing a Fiddler
> session:
>
> HEADER:
> BITS_POSThttp://BitsWebServer/BITS/a5d70f1c-82d9-46a4-94d8-6066b54b79ec.FILE
> HTTP/1.1
>
> Accept: */*
>
> User-Agent: Microsoft BITS/7.5
>
> BITS-Packet-Type: Create-Session
>
> BITS-Supported-Protocols: {7df0354d-249b-430f-820d-3d2a9bef4931}
>
> Accept-Language: en-US
>
> Accept-Encoding: GZIP
>
> Host: v-dev-app-009
>
> Connection: Keep-Alive
>
> RESPONSE: HTTP/1.1 500 Internal Server Error
>
> ---------------------------------------------------------------------------­-----
>
> Successful REQUEST via Microsoft supported PowerShell script (Fiddler
> captured session):
>
> HEADER:
> BITS_POSThttp://BitsWebServer/BITS/a5d70f1c-82d9-46a4-94d8-6066b54b79ec.FILE
> HTTP/1.1
>
> Accept: */*
>
> User-Agent: Microsoft BITS/7.5
>
> BITS-Packet-Type: Create-Session
>
> BITS-Supported-Protocols: {7df0354d-249b-430f-820d-3d2a9bef4931}
>
> Connection: Keep-Alive
>
> Content-Length: 0
>
> Host: v-dev-app-009
>
> RESPONSE: HTTP/1.1 200 OK
> ---------------------------------------------------------------------------­--------

Sean

unread,
Jun 29, 2011, 10:29:05 AM6/29/11
to Fiddler
PowerShell BITS cmdlets exist that exercise BITS functionality (to a
point).

If I reissue a given request with Fiddler it does not work - 500
error.
As far as I can tell the HTTP-method is truly "BITS_POST".

Sean

unread,
Jul 27, 2011, 3:13:22 PM7/27/11
to Fiddler
Actually, if I reissue the series of requests via Fiddler, all will
work as long as I first alter a few of the Ids (Guids within the BITS-
POST.
Although exporting to a VS WebTest omits things like Connection: Keep-
Alive, and User-Agent: Microsoft BITS/7.5. Within VS2010, I can add
these Headers, but the Connection: Keep-Alive will not "stick"...
meaning it will not exist within the new POST request (verifying via
Fiddler).

This is really a VS2010 WebTest problem, not Fiddler... but if you
have any ideas about how to solve this, that would be wonderful; I'd
like to create VS2010 tests from Fiddler-captured data.

On Jun 28, 7:58 am, EricLaw <bay...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages