Re: HTTP Request PATCH

2017-11-24 Thread Douglas Cryer via 4D_Tech
Koen,

Re:
>  There is no PATCH constant defined in 4D, but you can use “PATCH” as string 
> for http method as the first parameter:
>  HTTP Request(“PATCH”;$url;…)

Many thanks.  I had that thought in the waking hours and was going to try it.  
I had not spotted it was a string constant.

The call works fine now :-)

Regards,  Dougie


telekinetix Limited- J. Douglas Cryer
Phone : 01234 761759  Mobile : 07973 675 218
2nd Floor Broadway House, 4-6 The Broadway, Bedford MK40 2TE
Email : jdcr...@telekinetix.com <mailto:jdcr...@telekinetix.com>  Web : 
http://www.telekinetix.com <http://www.telekinetix.com/>

 

> On 22 Nov 2017, at 20:00, 4d_tech-requ...@lists.4d.com wrote:
> 
> HTTP Request PATCH

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: HTTP Request PATCH

2017-11-22 Thread Tom Swenson via 4D_Tech
Yep, I’ve had that “PATCH” working for some time interfacing with a couple of 
REST services.

On 11/22/17, 10:01 AM, "4D_Tech on behalf of Koen Van Hooreweghe via 4D_Tech" 
<4d_tech-boun...@lists.4d.com on behalf of 4d_tech@lists.4d.com> wrote:

Hi Doug,

There is no PATCH constant defined in 4D, but you can use “PATCH” as string 
for http method as the first parameter:
    HTTP Request(“PATCH”;$url;…)

The other constants are just strings for the other method keywords: GET, 
POST,...

HTH
Koen

> Op 22 nov. 2017, om 11:15 heeft Douglas Cryer via 4D_Tech 
<4d_tech@lists.4d.com> het volgende geschreven:
> 
> But there is no PATCH method in 4D.  I tried using both PUT and POST and 
both return errors.  At this point I do not know if this is a 4D limitation or 
something to do with the body I am sending.  I just get back a 500 error: with 
the message:
> 



—
Koen Van Hooreweghe
—



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: HTTP Request PATCH

2017-11-22 Thread Koen Van Hooreweghe via 4D_Tech
Hi Doug,

There is no PATCH constant defined in 4D, but you can use “PATCH” as string for 
http method as the first parameter:
HTTP Request(“PATCH”;$url;…)

The other constants are just strings for the other method keywords: GET, 
POST,...

HTH
Koen

> Op 22 nov. 2017, om 11:15 heeft Douglas Cryer via 4D_Tech 
> <4d_tech@lists.4d.com> het volgende geschreven:
> 
> But there is no PATCH method in 4D.  I tried using both PUT and POST and both 
> return errors.  At this point I do not know if this is a 4D limitation or 
> something to do with the body I am sending.  I just get back a 500 error: 
> with the message:
> 



—
Koen Van Hooreweghe
—



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**