Erlang/OTP Forums

Author Message

<  Erlang  ~  problem with ibrowse and https

daniello
Posted: Fri Mar 07, 2008 4:56 pm Reply with quote
User Joined: 03 Apr 2007 Posts: 15
Hi,

I've the following problem

Code:

ibrowse:start(), ibrowse:send_req("https://myaccount.abc.com?text=ABC4", [], get, [], [{is_ssl, true}]).

=ERROR REPORT==== 7-Mar-2008::16:38:39 ===
** Generic server <0.59.0> terminating
** Last message in was {{send_req,["https://myaccount.abc.com?text=ABC4",
                                   [],get,[],
                                   [{is_ssl,true}],
                                   30000]},
                        {<0.31.0>,#Ref<0.0.0.153>}}
** When Server state == {state,"myaccount.abc.com",443,false,
                               undefined,[],false,undefined,
                               {[],[]},
                               undefined,idle,undefined,[],0,[],undefined,
                               undefined,undefined,false,undefined,undefined,
                               [],false,undefined,undefined}
** Reason for termination ==
** {{badmatch,false},
    [{ibrowse_http_client,get_value,2},
     {ibrowse_http_client,check_ssl_options,2},
     {ibrowse_http_client,handle_info,2},
     {gen_server,handle_msg,5},
     {proc_lib,init_p,5}]}


The call:
Code:

ibrowse:start(),
ibrowse:send_req("http://myaccount.abc.com?text=ABC4", [], get, [], []).

is absolutely fine.

Any ideas woulb apreciated
Cheers,
Daniel
View user's profile Send private message
chandru.m
Posted: Mon Mar 10, 2008 1:55 pm Reply with quote
User Joined: 24 Oct 2007 Posts: 85
Hi Daniello,

[quote]Hi,

I've the following problem

Code:

ibrowse:start(), ibrowse:send_req("https://myaccount.abc.com?text=ABC4", [], get, [], [{is_ssl, true}]).

=ERROR REPORT==== 7-Mar-2008::16:38:39 ===
** Generic server <0.59.0> terminating
** Last message in was {{send_req,["https://myaccount.abc.com?text=ABC4",
                                   [],get,[],
                                   [{is_ssl,true}],
                                   30000]},
                        {<0.31.0>,#Ref<0.0.0.153>}}
** When Server state == {state,"myaccount.abc.com",443,false,
                               undefined,[],false,undefined,
                               {[],[]},
                               undefined,idle,undefined,[],0,[],undefined,
                               undefined,undefined,false,undefined,undefined,
                               [],false,undefined,undefined}
** Reason for termination ==
** {{badmatch,false},
    [{ibrowse_http_client,get_value,2},
     {ibrowse_http_client,check_ssl_options,2},
     {ibrowse_http_client,handle_info,2},
     {gen_server,handle_msg,5},
     {proc_lib,init_p,5}]}


This is because the ssl_options parameter has not been specified in the options list. If you have no specific options to set, just pass it as
Code:
{ssl_options, []}
.

I know that isn't ideal - will find a way to make it easier.

cheers
Chandru
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