# Swipl hangs on "http\_post/4"

**URL:** <https://swi-prolog.discourse.group/t/swipl-hangs-on-http-post-4/6371>\
**Category:** Help!\
**Created:** [March 13, 2023, 10:21pm UTC](https://swi-prolog.discourse.group/t/swipl-hangs-on-http-post-4/6371 "2023-03-13T22:21:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![remy.s](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@remy.s](https://swi-prolog.discourse.group/u/remy.s)\
**Post date:** [March 13, 2023, 10:21pm UTC](https://swi-prolog.discourse.group/t/swipl-hangs-on-http-post-4/6371/1 "2023-03-13T22:21:57Z")

</div>

On my mac, I am using the latest development version of swi

```prolog
Welcome to SWI-Prolog (threaded, 64 bits, version 9.1.7)

```

When running the following query, it seems that it spends an awful lot of time on a call to http\_post/4.  
By comparison, the same routine returns immediately and successfully when using the latest stable release.  
Is there something that changed between the 2 versions?

The context of the call is:

```prolog
make_session(Token) :-
	retractall(session_info(_, _, _))
	, setting(api_login_url, Url)
	, setting(api_login, Login)
	, setting(api_password, Passwd)
	, atom_json_dict(A, _{login_email: Login, login_password: Passwd}, [])
	, http_post(Url, atom('application/json', A), Data, [])
	, atom_json_dict(Data, _{ token:Token}, [value_string_as(atom)])
        , ......
```
