You have .com in the url - is the printer internet facing or behind a router or firewall? What at the response headers you get back from the curl request? Can you access the URL in your browser, does that log a request if you do that.
Nick On Friday, February 7, 2014 5:22:32 PM UTC+13, gmoeller54 wrote: > > Greetings, > Kind of stumped - need to post an xml for a remote printer server. > What would be preventing me from posting the xml with the following code? > I've been having a person at the remote server checking logs - nothing > hitting the server yet! > > > $file2 = "xxxxx/$xxxxxFile.xml"; > > $c = curl_init(); > curl_setopt($c, CURLOPT_URL, " > http://xxxxxxxx.xxxxxxx.com/xxxxxx/xxxxxReceive.dll"); > curl_setopt($c, CURLOPT_RETURNTRANSFER, true); > curl_setopt($c, CURLOPT_POST, true); > curl_setopt($c, CURLOPT_INFILESIZE, filesize($file2)); > > $fp = fopen($file2, "r"); > curl_setopt($c, CURLOPT_INFILE, $fp); > > curl_exec($c); > > curl_close($c); > fclose($fp); > > Thanks! > -- -- 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.
