Brought to you by SugarCRM Engineers!
Interested in contributing to this blog?
Review the Sugar Developer Blog Style Guide for details.
Why not just use POST?
This was exactly what I needed. Thank you!
and… after hours of struggling I find the exact brilliant answer i needed. Thank you so incredibly much for this 🙂
This is great and exactly what I was looking for! Thank you so much.
Unfortunately there is not much information about HTTP PUT on the web so I was struggling to make my request for quite a while…
Just so everyone knows, the data in the $update_json variable will be available in the $_REQUEST array on the receiving script that is being cURLd to.
Or you could just write to memory – for those that can use fwrite():
$fp = fopen(‘php://temp/maxmemory:256000’, ‘w’);
That’ll write up to 256kb to memory before writing to disk.
The only problem is those calls won’t pass Package Scanner on OD. Plus, using the above method, you get around dealing with file I/O all together.
Thanks this works great, saves messing about with file nonsense!
Greate work! 10x!!! It really helped me.
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of new comments via email.
Notify me of new posts via email.