Erlang/OTP Forums

Author Message

<  Erlang  ~  no_schema in http:request

different
Posted: Wed Apr 22, 2009 12:03 pm Reply with quote
Joined: 22 Apr 2009 Posts: 2
Hi,

I'm trying to download a xml file which is offered through a html link (aspx). I only receive {error, no_schema} as response. The header states text/xml the body file is delivered as xml with a link to schema, which might be not available and which I do not want to use.

My only intention is to download and save the file for further processing. I'm not interesting in displaying or validating the file at this stage.

How can make http to ignore the missing information and start a plain download? is there a different way to download a file?

Kind regards,
Oliver
View user's profile Send private message
mhenoch
Posted: Wed Apr 22, 2009 1:59 pm Reply with quote
User Joined: 06 Nov 2008 Posts: 29
I believe this is the error you get when you call http:request without the leading "http://".
View user's profile Send private message
different
Posted: Thu Apr 30, 2009 10:43 am Reply with quote
Joined: 22 Apr 2009 Posts: 2
Hi,

in fact it pointed to a missing http://. The http:request does not handles the redirect message with an relative location.

Thanks for the hint,

Oliver
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum