Thanks for your response Shahzeb!
Here is what I have done.
Please keep in mind that there is a .dll file on the printer server that
needs to be accessed.
The xml is POSTed to this .dll
<?php
$thistext=('http://www.xxx.com/xxx.xml');
$ch = curl_init('xxx.com/xxx.dll');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $thistext);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/xml',
'Content-Length: ' . strlen($thistext)) );
$result = curl_exec($ch);
print_r($result);
curl_close($ch);
?>
As you can see I modified your code to something slightly different.
I need to POST the xml to this .dll - I do not seem to be having any luck!
If I simply ping the .dll address from the server, it is successful - so I
do not think it is network or firewall related.
Just my syntax
--
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
---
You received this message because you are subscribed to the Google Groups "NZ
PHP Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.