Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to send message with content-type: multipart/related; boundary=xxxxxxxxxxxx ? #127

Open
marcob79 opened this issue Nov 14, 2024 · 2 comments

Comments

@marcob79
Copy link

Hi dear,
I was wondering if with this fantastic tool is there a way to send message with content-type
multipart/related; boundary=r1smGkMERD5DazD6AvSqTpkKQprVLhBz
with a body, for example like (not sure I exactly copied all the body content)

Ei@@$q=_kG
~@
>`>^	
--r1smGkMERD5DazD6AvSqTpkKQprVLhBz
Content-Type: application/json

{"n1MessageContainer":{"n1MessageClass":"LPP","n1MessageContent":{"contentId":"lpp-pdu"},"nfId":"29cbd588-a86f-4d7b-8ce8-99fccaf66946"},"lcsCorrelationId":"0000000000000000","n1n2FailureTxfNotifURI":"NLF_n1_n2_failure_uri"}
--r1smGkMERD5DazD6AvSqTpkKQprVLhBz
Content-Type: application/vnd.3gpp.5gnas
Content-ID: lpp-pdu

$
--r1smGkMERD5DazD6AvSqTpkKQprVLhBz--

I found a similar mention on your website,
https://pororoca.io/docs/http-body-types#multipart-form-data
however I'm not sure it can do the trick and in case how to properly configure in Pororoca, in case

@alexandrehtrb
Copy link
Owner

Hello,

Pororoca currently only supports multipart/form-data and not other types of multipart. Implementing this would be hard to do because of screen space restraints (2 additional textboxes would be needed, 1 for multipart subtype and 1 for boundary).

Also, the multipart/related RFC specifies that other informations can be included in the Content-Type, making it even more complicated if we would follow the specification.

Sorry man.

Here is a C# example for multipart/*, maybe it can help you:

https://www.demo2s.com/csharp/csharp-multipartcontent-tutorial-with-examples.html

@marcob79
Copy link
Author

I was just asking.
Basically, if we think to boundaries part, we can consider to randomly generate it and put it both in the content type and as boundary among the different sections of the body.
But probably this is not the most complex part of the story.
Anyway thank you for your amazing tool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants