DEV Community

Discussion on: Passing request data as XML in Laravel Http Client

Collapse
 
peter279k profile image
peter279k

The PHP has the XML extension support.

Try to look at the xmlwriter example :).

Collapse
 
zubairmohsin33 profile image
Zubair Mohsin

Hi. Thanks for the reply.

I am not sure how XMLWriter is relevant here?

This is particularly about "sending xml as request data in an http request".

Collapse
 
peter279k profile image
peter279k

I think it can use the XML extension to generate XML dynamically.

And not just use the XML string to be a request data.