Thanks for the response!
The printer is behind a firewall that is 'wide open' - I assume there is a
router as well - I will ask.
I don't get any response headers back from the request (at least I think).
If you type the URL directly into the browser, the screen goes blank
- the printer said that is what is supposed to happen, but they do not
receive any log of my attempt actually touching the server.
If you use Firefox HTTP Resource Test Add-on, I do get a header response.


On Fri, Feb 7, 2014 at 4:32 AM, Nick <[email protected]> wrote:

> 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 a topic in the
> Google Groups "NZ PHP Users Group" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/nzphpug/F21rdaGpRO8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Garrett Moeller
GIS/Web/Urban Planning
garrettmoeller.com

-- 
-- 
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.

Reply via email to