cURL not always working

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hey I am using cURL to connect to a web service. The web service
returns a result. This works most the time however some times curl
doesnt return anything, no errors and no xml (what the web service is
supposed to return). Funnily enough this usually happens when the
service has not been used for a little while. Once it works, it works
every time and it usually only doesnt work once. At first I thought it
could be the webservice but whenever I connect to it through my browser
it works everytime. Trouble is I need t to definitely work everytime or
return an error. Does anyone have any ideas?

Re: cURL not always working

Ok it appears that the webservice does output something when it doesnt
work, but this isnt displayed in the browser. Still doesnt return all
the xml unless I refresh the call. So help is still needed. I have
posted what is returned below but cant work out why the rest isnt being

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfAnyType xmlns:xsd=" "
xmlns:xsi=" "
xmlns=" /" />

Iain Adams wrote:

Quoted text here. Click to load it

Re: cURL not always working

Hey there Iain,

If you could kindly visit or (whichever is
faster) and paste the part of the code that isn't properly working, I
could help you better. Thanks -Rob
Iain Adams wrote:
Quoted text here. Click to load it

Site Timeline