Hi Brendan,

On Fri, Aug 20, 2010 at 10:47 PM, Brendan Brink
<[email protected]>wrote:

> hi there again,
>
> have not been able to go to the host PC to change the file, but been
> thinking about it and not sure you are on the same page as I am
> regarding this.
>
> the script i am writing is on my server, and i am addressing a clients PC.
>
> they are running a point of sale system which is addressed using that IP
> number.
>
> I need to address the client PC on the fly through my script using
> CURL and obtain the XML.
>
> I dont think the 'test' url will work if the script on my server is
> trying to address the client's PC...
>
> let me know if you understand what I am trying to do...
>

If you wanted to change the hosts file, you would have to do it on the
server - yes. But as I said I think there is little prospect in trying this
because it is likely not the problem. Have you tried Bruce's latest
suggestion? It looks much more promising.

HTH, Jochen



>
> On Fri, Aug 20, 2010 at 9:27 PM, Jochen Daum <[email protected]> wrote:
> > Hi Brendan,
> > On Fri, Aug 20, 2010 at 9:15 PM, Brendan Brink <textvouchers.com@
> gmail.com>
> > wrote:
> >>
> >> hi there Jochen,
> >>
> >> So from what you say below...
> >>
> >> I need to update the hosts file on the PC at the IP address to set the
> >> IP address to a line of text...
> >>
> >> and then I can curl the line of text as I would a normal URL from my
> >> script?
> >
> > Well, maybe do the hosts file change just to check it is not the problem
> - I
> > highly doubt it. Your url with the port would look like this (its really
> > search and replace your IP address):
> > http://test:5574/Invoice?txtcode=R5W2
> >
> >>
> >> What about the PORT number would it work ok?
> >>
> >> The IP address is the address of my customers POS system, I need to
> >> CURL it to obtain the XML from my website script.
> >>
> >
> > Really the problem is that the server looks at one of your browser
> headers
> > that is missing and doesn't return the request. So you need to figure out
> > how to add custom headers to your curl request and see if that fixes the
> > problem.
> > Keep us posted.
> >
> >>
> >> Sorry if my query seems ignorant, but I am not familiar with the
> >> technologies you are talking about.
> >
> > No worries, just take it step by step.
> > HTH, Jochen
> >
> > --
> > NZ PHP Users Group: http://groups.google.com/group/nzphpug
> > To post, send email to [email protected]
> > To unsubscribe, send email to
> > [email protected]<nzphpug%[email protected]>
>
> --
> Kind Regards,
>
> Brendan Brink
>
> SMS Marketing Consultant | Manager
> Sell2Cell Ltd.
>
> 021 0246 1646 | [email protected] | www.sell2cell.co.nz
>
>
>
>
>   We provide customized, cost-effective SMS & Web Solutions
>   Need a website? Need to integrate text-messaging into your business
>   or website? Contact us today for a free no-obligation quote!
>
>   VISIT OUR ASSOCIATED WEBSITES:   textvouchers.com | textguru.co.nz
>
> WARNING This email contains information which is CONFIDENTIAL and may
> be subject to LEGAL PRIVILEGE. If you are not the intended recipient,
> you must not peruse, use, disseminate, distribute or copy the email or
> attachments. If you have received this in error, please notify us
> immediately by return email, facsimile, or telephone (call us
> collect).
>
> --
> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> To post, send email to [email protected]
> To unsubscribe, send email to
> [email protected]<nzphpug%[email protected]>
>

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to