www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - help

reply michael via Digitalmars-d-learn <digitalmars-d-learn puremagic.com> writes:
SGVsbG8gQWxsOgp3aGVuIGkgYW0gdXNpbmcgc3RkLm5ldC5jdXJsIHRvIGRvd25sb2FkIGEgZmls
ZSB0aGF0IGRvc2VudCBleGlzdCBvbiBmdHAgc2V2ZXIsbXkgY29kZQp3aWxsIGdldCBhbiBleGVj
cHRpb24gbGlrZSB0aGlzCiIg4oCNc3RkLm5ldC5jdXJsLkN1cmxFeGNlcHRpb25Ac3RkXG5ldFxj
dXJsLmQoMzYwNSk6IFJlbW90ZSBmaWxlIG5vdCBmb3VuZCBvbiBoYW5kbGUKIDFBOEUwMzgKLS0t
LS0tLS0tLS0tLS0tLQoweDAwNDJFQzA1CjB4MDA0MDI3RjYiCmFuZCB0aGVuIGl0IGV4aXRzLGhv
d2V2ZXIgd2hhdCBpIHdhbnQgd2hlbiBpdCBvY2NlcnMgaXMgdGhhdCBteSBjb2RlIHNob3dzIGFu
IGVycm9yIG1lc3NhZ2UgIGxpa2UKInBsZWFzZSBjaGVjayB0aGUgdXJsIHlvdSB0eXBlZCBibGFi
bGFibGEiIG5vdCB0aGUgb25lIGFib3ZlLGNhbiBhbnlvbmUgZ2l2ZSBhIGhhbmQgb24gbWUgPwog
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgdGhhbmtzIGEgbG90LgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBNaWNoYWVsLgoK
Nov 19 2014
next sibling parent reply "Suliman" <evermind live.ru> writes:
You need to check if remote file exist of server and only after 
it download шею

Also add "scope" or "try catch" block to your code.
Nov 19 2014
parent reply "MachineCode" <netorib94 gmail.com> writes:
On Thursday, 20 November 2014 at 07:25:45 UTC, Suliman wrote:
 You need to check if remote file exist of server and only after 
 it download шею
is this software name written in russian language?
Nov 20 2014
parent "MrSmith" <mrsmith33 yandex.ru> writes:
On Thursday, 20 November 2014 at 16:48:29 UTC, MachineCode wrote:
 On Thursday, 20 November 2014 at 07:25:45 UTC, Suliman wrote:
 You need to check if remote file exist of server and only 
 after it download шею
is this software name written in russian language?
"шею" means "it." on russian keyboard layout
Nov 20 2014
prev sibling parent Mike Parker <aldacron gmail.com> writes:
On 11/20/2014 3:38 PM, michael via Digitalmars-d-learn wrote:
 Hello All:
 when i am using std.net.curl to download a file that dosent exist on ftp
 sever,my code
 will get an execption like this
 " ‍std.net.curl.CurlException std\net\curl.d(3605
 <mailto:‍std.net.curl.CurlException std\net\curl.d(3605>): Remote file
 not found on handle
   1A8E038
 ----------------
 0x0042EC05
 0x004027F6"
 and then it exits,however what i want when it occers is that my
 code shows an error message  like
 "please check the url you typed blablabla" not the one above,can anyone
 give a hand on me ?
                                                                               
                                              thanks a lot.
                                                                               
                                                      Michael.
try { // call curl } catch( CurlException ) { // print error message }
Nov 20 2014