Commits

Matt Stancliff  committed c6bc617

Fix deprecated warnings in R14A

  • Participants
  • Parent commits 4e7cc7b

Comments (0)

Files changed (3)

File src/erlaws_s3.erl

     HttpOptions = [{autoredirect, true}],
     Options = [ {sync,true}, {headers_as_is,true}, {body_format, binary} ],
 
-    Reply = http:request( Method, Request, HttpOptions, Options ),
+    Reply = httpc:request( Method, Request, HttpOptions, Options ),
     
     %%     {ok, {Status, ReplyHeaders, RBody}} = Reply,
     %%     io:format("Response:~n ~p~n~p~n~p~n", [Status, ReplyHeaders, 

File src/erlaws_sdb.erl

     HttpOptions = [{autoredirect, true}],
     Options = [ {sync,true}, {headers_as_is,true}, {body_format, binary} ],
     {ok, {Status, _ReplyHeaders, Body}} = 
-	http:request(get, Request, HttpOptions, Options),
+	httpc:request(get, Request, HttpOptions, Options),
     %io:format("Response:~n ~p~n", [binary_to_list(Body)]),
     case Status of 
 	{_, 200, _} -> {ok, Status, binary_to_list(Body)};

File src/erlaws_sqs.erl

     HttpOptions = [{autoredirect, true}],
     Options = [ {sync,true}, {headers_as_is,true}, {body_format, binary} ],
     {ok, {Status, _ReplyHeaders, Body}} = 
-	http:request(Method, Request, HttpOptions, Options),
+	httpc:request(Method, Request, HttpOptions, Options),
     %% io:format("Response:~n ~p~n", [binary_to_list(Body)]),
 	%% io:format("Status: ~p~n", [Status]),
     case Status of