VL.SimpleHTTP

bonjour,

here’s VL.SimpleHTTP, a minimal nuget that allows to perform simple HTTP queries.

it gives you two Request nodes (one async, one blocking) that just take a URL and return the response’s body as a string. you can also supply your own headers and a JSON body. all HTTP methods supported by RESTSharp (on which the nuget is based) are available from an enum

on the outputs side, you get the response and the status code/description. you can also enable an optional pin that shows the data as a spread of bytes, in case you’re dealing with images.

it comes with a bunch of help patches, so make sure to check those out!

to install, simply do

nuget install VL.SimpleHTTP

don’t hesitate to throw suggestions, comments or bugreports here or in the github issues!

cheerrzzz

7 Likes

Hi,
thanks for the nuget. It works perfectly in most cases :)
Unfortunately I can’t manage to create a post request with Content-Type: multipart/form-data
The request works in the demo of the api, but not in vvvv.
Apparently the API needs the correct content type multipart/form-data in the body. But I can’t get it formatted as a string. I have tried to set boundaries in header and body, but that doesn’t work either.
Any ideas?
Thanks