Hi,
Recently I decided to try stack of new OE tools (at least for me new). Like SmartDox documentation genearator and OEUnit test framework and try to OOP in OE. I saw several question about "How I can make http request?" and the answer was "Use .Net or write your own socket client".
So considering that I decided to make HttpClient. Of course you can you use one from .Net but this is not true Open edge developer way :)
I very satisfied with SmartDox and OEUnit it worked just fine for me. And I will use them more.
As result I got http client. It has really small realization of http protocol. Only very basics. It doesn't support https which makes it not really usable. But you can call web sites and REST api which is not required https.
You can see, download on Bitbucket and use it. It has html documentation and some unit tests.
So if you think it is needed by someone I can try develop it further.
What is bad as there is no native OE basic classes like List or Dictionaries I wish also to fix this but have no time.
Hi Aleksey, I like the documentation ;-)
Does your http client only support GET or also POST and other REST typical request methods, like for instance PUT?
Hi, Mike
:) documentation, well I only put comments other magic done by PCT and you :)
Well good question. But what the difference between PUT/POST/DELETE and GET? As understood it just method you send to server in http request. Is any special client support needed?
So I would guess it support as you can specify any method as character parameter.
But will check these days when will have spare 10 minutes :)
Hi, Mike
:) documentation, well I only put comments other magic done by PCT and you :)
Well good question. But what the difference between PUT/POST/DELETE and GET? As understood it just method you send to server in http request. Is any special client support needed?
So I would guess it support as you can specify any method as character parameter.
But will check these days when will have spare 10 minutes :)
Flag this post as spam/abuse.
Yes it always sends header + empty line + body if exists.
Actually by HTTP/1.1 Host key in header is mandatory. So I add it is now from the box.
So it means I always have header and empty line afterwards.
Here's a little project I started of creating a 90% pure HTTP client. The main focus was to handle SSL connections, handling redirections, cookies, able to handle REST request and handling GZIP compressed content. I started the project but I ran out of time and so it's not complete.
github.com/.../ABL-HTTP-Web-Request
I was based my design on a commercial product from Chilkat
CMI,
What is missing from your project? What works and what still needs to be completed?
Thanks in advance,
Ricardo
In 11.4, there is one built -in. Search here on communities for "making http requests with openedge.net.pl".
Matt, could you please provide a link to this information. I searched on communities (and KB) for that but couldn't find anything related to openedge.net.pl other than this thread and a couple of other threads on mobile push notification.
Also, I couldn't find any related documentation from 11.4 docs (except for mobile push notifications).
Matt, could you please provide a link to this information. I searched on communities (and KB) for that but couldn't find anything related to openedge.net.pl other than this thread and a couple of other threads on mobile push notification.
Also, I couldn't find any related documentation from 11.4 docs (except for mobile push notifications).
Flag this post as spam/abuse.
Didn't realize it was part of 11.5 ESAP :)
Thanks, Peter, for the clarification, I haven't participated in 11.5 ESAP so that's the reason. In 11.4 installation I found openedge.net.pl which includes classes like HttpRequest etc. but I guess those are undocumented (preview) features in 11.4 and finished in 11.5.
Thanks, Peter, for the clarification, I haven't participated in 11.5 ESAP so that's the reason. In 11.4 installation I found openedge.net.pl which includes classes like HttpRequest etc. but I guess those are undocumented (preview) features in 11.4 and finished in 11.5.
Flag this post as spam/abuse.