Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By longieirl on
Hi,
Im new to Drupal but trying to integrate our module into drupal so that it can consume a third party API - the API returns a multipart message. I've found
https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_...
But there is no reference to how multipart messages should/can be handled? I can write a script that is similar to parsing an email message but I don't want to reinvent the wheel here.
Any help or direction would be appreciated.
Thanks.
J
Comments
_
The only info I've ever found on this is:
http://stackoverflow.com/questions/26419336/php-parsing-a-post-response-...
I ended up not having to deal with multipart responses, so I never went any further.
drupal_http_request() may
drupal_http_request() may handle this internally. It's worth testing.