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

WorldFallz’s picture

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.

Jaypan’s picture

drupal_http_request() may handle this internally. It's worth testing.