473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

cURL not always working

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?

Aug 11 '06 #1
2 1957
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
returned.

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfAnyType xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://tempuri.org/" />
Iain Adams wrote:
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?
Aug 11 '06 #2
Hey there Iain,

If you could kindly visit pastebin.com or pastebin.ca (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:
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
returned.

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfAnyType xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://tempuri.org/" />
Iain Adams wrote:
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?
Aug 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Haluk Durmus | last post by:
Hello I checked out openssl,mm,apr,apr-util,apache 2,curl,libxml and php from cvs. php couse an ERROR I did the following steps:
9
by: Conrad F | last post by:
Hi, If any Microsoft people are listening.... Are there any plans for the new web language called "Curl" to be supported in .NET (ASP.NET)? I ask as Curl represents the first step to true OO...
0
by: rgparkins | last post by:
HI I have 2 problems, 1 of which is tied to PHP and 1 loosely tied, so I'll put this out there. Got a problem that I have been working on for a while now which involves implementing the...
1
by: Rory | last post by:
I'm just starting to use cURL and having trouble accessing https pages. All I want to do at this stage is get an https page and display it, just to test the https get is working. However, I always...
1
by: devranger | last post by:
Hello, I am in the process of learning PHP CURL and in doing some test examples I am having some issues with CURL that I do not fully understand. I am doing a test to use CURL to post and return...
0
by: xerc | last post by:
I am trying to create a generic function I can call to download all files from a single remote FTP directory -- using CURL. I want to multi-thread it, but need to get the single thread functionality...
1
by: sik of it | last post by:
I am using windows xp. Hi, I am really new to cURL (started today) and funnily enough haven't even got it to output anything yet! Anway my problem is when using the following code I always get...
4
by: rottmanj | last post by:
I am working on a revamp of a previous application that I have written in coldfusion. The application deals with RETS data. The issue that I am having is with using the curl option HTTP_AUTH and...
11
by: Flexor | last post by:
I have a php script that runs from command line and makes an https request to paypal, using curl. It works fine if I run it from a web page. It fails if I run it from CLI. The error I get from...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.