
Hi folks, Anyone a gun on Postman? I'm trying to debug a file upload. * I create a request that looks like the typical request, including a body saying form-data and with a key of file and a value set to File with an uploaded file. * I save a 200 response for it. * I choose to mock the collection and create a server. * I start a new request pointing to the mock server, and set the body the same way as before. * I send the request. In the server logs, I see this: [cid:image001.png@01D95E43.FC7535E0] The content-length looks about right. The content-type does say multipart/form-data, and has a boundary, etc. But the body is empty. Is there some trick to getting it to log the body? That's what I'm trying to see. Regards, Greg Dr Greg Low 1300SQLSQL (1300 775 775) office | +61 419201410 mobile SQL Down Under | Web: https://sqldownunder.com<https://sqldownunder.com/> | About Greg: https://about.me/greg.low

I'm no whiz but I sent something akin to what you said to a test site (https://webhook.site/) [image: image.png] and this is what I got: [image: image.png] Which seems like it got through. Did I set it up correctly? regards, Preet, in Auckland NZ On Fri, 24 Mar 2023 at 13:32, Dr Greg Low via ozdotnet < ozdotnet@ozdotnet.com> wrote:
Hi folks,
Anyone a gun on Postman?
I’m trying to debug a file upload.
- I create a request that looks like the typical request, including a *body* saying *form-data* and with a key of *file* and a value set to *File* with an uploaded file. - I save a 200 response for it. - I choose to *mock the collection* and create a server. - I start a new request pointing to the mock server, and set the body the same way as before. - I send the request.
In the server logs, I see this:
The *content-length* looks about right. The *content-type* does say *multipart/form-data*, and has a boundary, etc.
*But the body is empty.*
Is there some trick to getting it to log the body? That’s what I’m trying to see.
Regards,
Greg
Dr Greg Low
1300SQLSQL (1300 775 775) office | +61 419201410 mobile
SQL Down Under | Web: https://sqldownunder.com | About Greg: https://about.me/greg.low
-- ozdotnet mailing list To manage your subscription, access archives: https://codify.mailman3.com/

Sorry, I now get the same as you :-( Forget what I side regards, Preet, in Auckland NZ On Mon, 27 Mar 2023 at 20:16, Preet Sangha <preetsangha@gmail.com> wrote:
I'm no whiz but I sent something akin to what you said to a test site
[image: image.png]
and this is what I got:
[image: image.png]
Which seems like it got through.
Did I set it up correctly?
regards, Preet, in Auckland NZ
On Fri, 24 Mar 2023 at 13:32, Dr Greg Low via ozdotnet < ozdotnet@ozdotnet.com> wrote:
Hi folks,
Anyone a gun on Postman?
I’m trying to debug a file upload.
- I create a request that looks like the typical request, including a *body* saying *form-data* and with a key of *file* and a value set to *File* with an uploaded file. - I save a 200 response for it. - I choose to *mock the collection* and create a server. - I start a new request pointing to the mock server, and set the body the same way as before. - I send the request.
In the server logs, I see this:
The *content-length* looks about right. The *content-type* does say *multipart/form-data*, and has a boundary, etc.
*But the body is empty.*
Is there some trick to getting it to log the body? That’s what I’m trying to see.
Regards,
Greg
Dr Greg Low
1300SQLSQL (1300 775 775) office | +61 419201410 mobile
SQL Down Under | Web: https://sqldownunder.com | About Greg: https://about.me/greg.low
-- ozdotnet mailing list To manage your subscription, access archives: https://codify.mailman3.com/

Ok it's working now: [image: image.png] [image: image.png] regards, Preet, in Auckland NZ On Mon, 27 Mar 2023 at 20:20, Preet Sangha <preetsangha@gmail.com> wrote:
Sorry, I now get the same as you :-( Forget what I side
regards, Preet, in Auckland NZ
On Mon, 27 Mar 2023 at 20:16, Preet Sangha <preetsangha@gmail.com> wrote:
I'm no whiz but I sent something akin to what you said to a test site
[image: image.png]
and this is what I got:
[image: image.png]
Which seems like it got through.
Did I set it up correctly?
regards, Preet, in Auckland NZ
On Fri, 24 Mar 2023 at 13:32, Dr Greg Low via ozdotnet < ozdotnet@ozdotnet.com> wrote:
Hi folks,
Anyone a gun on Postman?
I’m trying to debug a file upload.
- I create a request that looks like the typical request, including a *body* saying *form-data* and with a key of *file* and a value set to *File* with an uploaded file. - I save a 200 response for it. - I choose to *mock the collection* and create a server. - I start a new request pointing to the mock server, and set the body the same way as before. - I send the request.
In the server logs, I see this:
The *content-length* looks about right. The *content-type* does say *multipart/form-data*, and has a boundary, etc.
*But the body is empty.*
Is there some trick to getting it to log the body? That’s what I’m trying to see.
Regards,
Greg
Dr Greg Low
1300SQLSQL (1300 775 775) office | +61 419201410 mobile
SQL Down Under | Web: https://sqldownunder.com | About Greg: https://about.me/greg.low
-- ozdotnet mailing list To manage your subscription, access archives: https://codify.mailman3.com/

Apologies for the spam: [image: image.png] regards, Preet, in Auckland NZ On Mon, 27 Mar 2023 at 20:22, Preet Sangha <preetsangha@gmail.com> wrote:
Ok it's working now:
[image: image.png]
[image: image.png]
regards, Preet, in Auckland NZ
On Mon, 27 Mar 2023 at 20:20, Preet Sangha <preetsangha@gmail.com> wrote:
Sorry, I now get the same as you :-( Forget what I side
regards, Preet, in Auckland NZ
On Mon, 27 Mar 2023 at 20:16, Preet Sangha <preetsangha@gmail.com> wrote:
I'm no whiz but I sent something akin to what you said to a test site
[image: image.png]
and this is what I got:
[image: image.png]
Which seems like it got through.
Did I set it up correctly?
regards, Preet, in Auckland NZ
On Fri, 24 Mar 2023 at 13:32, Dr Greg Low via ozdotnet < ozdotnet@ozdotnet.com> wrote:
Hi folks,
Anyone a gun on Postman?
I’m trying to debug a file upload.
- I create a request that looks like the typical request, including a *body* saying *form-data* and with a key of *file* and a value set to *File* with an uploaded file. - I save a 200 response for it. - I choose to *mock the collection* and create a server. - I start a new request pointing to the mock server, and set the body the same way as before. - I send the request.
In the server logs, I see this:
The *content-length* looks about right. The *content-type* does say *multipart/form-data*, and has a boundary, etc.
*But the body is empty.*
Is there some trick to getting it to log the body? That’s what I’m trying to see.
Regards,
Greg
Dr Greg Low
1300SQLSQL (1300 775 775) office | +61 419201410 mobile
SQL Down Under | Web: https://sqldownunder.com | About Greg: https://about.me/greg.low
-- ozdotnet mailing list To manage your subscription, access archives: https://codify.mailman3.com/

Thanks for those who provided ideas on this. What eventually ended up being the best option was this project: https://github.com/JanneMattila/Echo I just published it to an Azure Web App, and it simply shows on the main web page, every request of any type that's sent to a specific subfolder. Works great, and shows the raw request. Regards, Greg Dr Greg Low 1300SQLSQL (1300 775 775) office | +61 419201410 mobile SQL Down Under | Web: https://sqldownunder.com<https://sqldownunder.com/> | About Greg: https://about.me/greg.low From: Preet Sangha via ozdotnet <ozdotnet@ozdotnet.com> Sent: Monday, March 27, 2023 6:27 PM To: ozDotNet <ozdotnet@ozdotnet.com> Cc: Preet Sangha <preetsangha@gmail.com> Subject: Re: Postman help please Apologies for the spam: [cid:image001.png@01D967A8.21F28990] regards, Preet, in Auckland NZ On Mon, 27 Mar 2023 at 20:22, Preet Sangha <preetsangha@gmail.com<mailto:preetsangha@gmail.com>> wrote: Ok it's working now: [cid:image002.png@01D967A8.21F28990] [cid:image003.png@01D967A8.21F28990] regards, Preet, in Auckland NZ On Mon, 27 Mar 2023 at 20:20, Preet Sangha <preetsangha@gmail.com<mailto:preetsangha@gmail.com>> wrote: Sorry, I now get the same as you :-( Forget what I side regards, Preet, in Auckland NZ On Mon, 27 Mar 2023 at 20:16, Preet Sangha <preetsangha@gmail.com<mailto:preetsangha@gmail.com>> wrote: I'm no whiz but I sent something akin to what you said to a test site (https://webhook.site/) [cid:image004.png@01D967A8.21F28990] and this is what I got: [cid:image005.png@01D967A8.21F28990] Which seems like it got through. Did I set it up correctly? regards, Preet, in Auckland NZ On Fri, 24 Mar 2023 at 13:32, Dr Greg Low via ozdotnet <ozdotnet@ozdotnet.com<mailto:ozdotnet@ozdotnet.com>> wrote: Hi folks, Anyone a gun on Postman? I’m trying to debug a file upload. * I create a request that looks like the typical request, including a body saying form-data and with a key of file and a value set to File with an uploaded file. * I save a 200 response for it. * I choose to mock the collection and create a server. * I start a new request pointing to the mock server, and set the body the same way as before. * I send the request. In the server logs, I see this: [cid:image006.png@01D967A8.21F28990] The content-length looks about right. The content-type does say multipart/form-data, and has a boundary, etc. But the body is empty. Is there some trick to getting it to log the body? That’s what I’m trying to see. Regards, Greg Dr Greg Low 1300SQLSQL (1300 775 775) office | +61 419201410 mobile SQL Down Under | Web: https://sqldownunder.com<https://sqldownunder.com/> | About Greg: https://about.me/greg.low -- ozdotnet mailing list To manage your subscription, access archives: https://codify.mailman3.com/

Thanks for trying ! Regards, Greg Dr Greg Low 1300SQLSQL (1300 775 775) office | +61 419201410 mobile SQL Down Under | Web: https://sqldownunder.com<https://sqldownunder.com/> | About Greg: https://about.me/greg.low From: Preet Sangha via ozdotnet <ozdotnet@ozdotnet.com> Sent: Monday, March 27, 2023 6:21 PM To: ozDotNet <ozdotnet@ozdotnet.com> Cc: Preet Sangha <preetsangha@gmail.com> Subject: Re: Postman help please Sorry, I now get the same as you :-( Forget what I side regards, Preet, in Auckland NZ On Mon, 27 Mar 2023 at 20:16, Preet Sangha <preetsangha@gmail.com<mailto:preetsangha@gmail.com>> wrote: I'm no whiz but I sent something akin to what you said to a test site (https://webhook.site/) [cid:image001.png@01D960FA.B25AB5C0] and this is what I got: [cid:image002.png@01D960FA.B25AB5C0] Which seems like it got through. Did I set it up correctly? regards, Preet, in Auckland NZ On Fri, 24 Mar 2023 at 13:32, Dr Greg Low via ozdotnet <ozdotnet@ozdotnet.com<mailto:ozdotnet@ozdotnet.com>> wrote: Hi folks, Anyone a gun on Postman? I’m trying to debug a file upload. * I create a request that looks like the typical request, including a body saying form-data and with a key of file and a value set to File with an uploaded file. * I save a 200 response for it. * I choose to mock the collection and create a server. * I start a new request pointing to the mock server, and set the body the same way as before. * I send the request. In the server logs, I see this: [cid:image003.png@01D960FA.B25AB5C0] The content-length looks about right. The content-type does say multipart/form-data, and has a boundary, etc. But the body is empty. Is there some trick to getting it to log the body? That’s what I’m trying to see. Regards, Greg Dr Greg Low 1300SQLSQL (1300 775 775) office | +61 419201410 mobile SQL Down Under | Web: https://sqldownunder.com<https://sqldownunder.com/> | About Greg: https://about.me/greg.low -- ozdotnet mailing list To manage your subscription, access archives: https://codify.mailman3.com/
participants (2)
-
Dr Greg Low
-
Preet Sangha