Page 1 of 1
[Implemented] Native HTTP Library
Posted: Tue Aug 20, 2013 8:36 pm
by nblackburn
Something I would really like to see is a fleshed out native HTTP library which allows you to send requests such as GET, POST, add headers to a request (similar to something like cURL) and return the content from the request back to the application which would normally be a lot of work (from what I can see).
Code: Select all
HttpRequest("GET", "http://google.com", #parameters, #headers)
Re: Native HTTP Library
Posted: Tue Aug 20, 2013 9:37 pm
by ostapas
You reminded me about a John Lennon song("You, you may say
I'm a dreamer, but I'm not the only one")

This feature request is popping up perhaps every 2 weeks.
Re: Native HTTP Library
Posted: Wed Aug 21, 2013 12:05 am
by nblackburn
That means it's in demand, hopefully the developers will see
I am actually stumped why this wasn't really thought out being added as it seems such a fundamental and widely used thing not to include.
Re: Native HTTP Library
Posted: Wed Aug 21, 2013 11:14 am
by PMV
Just search the forum for a include file ...
Or do it completely yourself. It is not that hard,
maybe chunked-encoding, but you will learn a lot
about HTTP. So, it is already possible
There are many more thinks the developers can
do and thats why they haven't spend more time
on the HTTP-Lib.
Happy Coding.
MFG PMV
Re: Native HTTP Library
Posted: Wed Aug 21, 2013 6:23 pm
by Olby
Just use the libcurl.dll directly. I pretty sure the header files for PB are flying somewhere around the forums as we speak.
Re: Native HTTP Library
Posted: Thu Aug 22, 2013 1:00 am
by RichAlgeni
I would tend to agree with PMV & Olby. You can learn so much more by getting into the nut and bolts of a process, than by just asking for a new feature.
Get yourself a good socket sniffer, like from nirsoft.net, go to his network tools. Watch how a number of web pages are sent, then create your own dll. Customize it to exactly how you need it. You'll get exactly what you need, and be proud of the accomplishment!
Re: Native HTTP Library
Posted: Thu Aug 22, 2013 1:40 am
by USCode
RichAlgeni wrote:... Get yourself a good socket sniffer, like from nirsoft.net, go to his network tools. ...
Hi Rich, How does the NirSoft sniffer compare to Microsoft's Network Monitor? Have you tried it?
http://www.microsoft.com/en-us/download ... px?id=4865
Re: Native HTTP Library
Posted: Thu Aug 22, 2013 1:47 am
by RichAlgeni
I haven't used the latest version from Microsoft, but I will make it a goal to do so.
The socket sniffer from Nir Sofer is great! You can select the application you want to sniff! Rather than having to sort through a ton of extraneous data.
Re: Native HTTP Library
Posted: Thu Aug 22, 2013 10:13 am
by Justin
IE 10 has an excellent built in tool for this, it only shows the browser traffic.
Re: Native HTTP Library
Posted: Sat Jun 07, 2014 5:41 pm
by said
+1 for native http lib