Hi Brendan,

On Fri, Aug 20, 2010 at 9:15 PM, Brendan Brink
<[email protected]>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<http://121.98.150.62: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]

Reply via email to