We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I use PowerShell - RestMethod Code Snippet to get PoserShell code.
But it doesn’t work.
Below is what concerns me:
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" $headers.Add("authtoken", "bclzcBL3i2C0ccaWrb3EDLVSigwpWnrObDekm0+fxAM=") $multipartContent = [System.Net.Http.MultipartFormDataContent]::new() $stringHeader = [System.Net.Http.Headers.ContentDispositionHeaderValue]::new(“form-data”) $stringHeader.Name = “solutionName” $stringContent = [System.Net.Http.StringContent]::new(“SK”) $stringContent.Headers.ContentDisposition = $stringHeader $multipartContent.Add($stringContent) $stringHeader = [System.Net.Http.Headers.ContentDispositionHeaderValue]::new("form-data") $stringHeader.Name = "planName" $stringContent = [System.Net.Http.StringContent]::new("Test plan") $stringContent.Headers.ContentDisposition = $stringHeader $multipartContent.Add($stringContent) $body = $multipartContent $response = Invoke-RestMethod 'http://server.com/services/v1/plan' -Method 'POST' -Headers $headers -Body $body $response | ConvertTo-Json
but I don’t see correct body in Fiddler, just the below string
System.Net.Http.StringContent
Thanks
Postman for Windows Version 11.8.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I use PowerShell - RestMethod Code Snippet to get PoserShell code.
But it doesn’t work.
Below is what concerns me:
but I don’t see correct body in Fiddler, just the below string
System.Net.Http.StringContent
Thanks
Postman for Windows
Version
11.8.1
The text was updated successfully, but these errors were encountered: