Add permanent redirect (308) http code
Add permanent redirect (308) http code

Add 308 http code next to 301, 302, 303 and 307.
Close curl session before returning on redirect.
Let post_url redirect using post_url, not fetch_url (which is
actually 308 behavior).

mjfriaza/hubzilla,zzottel/hubzilla,dawnbreak/hubzilla,sasiflo/hubzilla,beardyunixer/federated-global-directory,zzottel/hubzilla,wave72/hubzilla-dev,encyclomundi/hubzilla,dawnbreak/hubzilla,git-marijus/hubzilla,redmatrix/redmatrix,friendica/red,habeascodice/redmatrix,kenrestivo/hubzilla,unary/redmatrix,wave72/hubzilla-dev,kenrestivo/hubzilla,friendica/red,kenrestivo/hubzilla,mjfriaza/hubzilla,habeascodice/redmatrix,habeascodice/redmatrix,beardyunixer/redmatrix,dawnbreak/redmatrix,wave72/hubzilla-dev,dawnbreak/redmatrix,wave72/hubzilla-dev,beardyunixer/federated-global-directory,solstag/redmatrix,waitman/red,anaqreon/hubzilla,anaqreon/redmatrix,anaqreon/redmatrix,habeascodice/redmatrix,redmatrix/redmatrix,beardyunixer/redmatrix,unary/redmatrix,beardyunixer/redmatrix,dawnbreak/hubzilla,dawnbreak/hubzilla,zotlabs/hubzilla,git-marijus/hubzilla,encyclomundi/hubzilla,mrjive/hubzilla,encyclomundi/hubzilla,mrjive/hubzilla,redmatrix/hubzilla,unary/redmatrix,mjfriaza/hubzilla,friendica/red,phellmes/hubzilla,solstag/redmatrix,solstag/redmatrix,redmatrix/hubzilla,anaqreon/redmatrix,HaakonME/hubzilla,waitman/red,zotlabs/hubzilla,waitman/red,wave72/hubzilla-dev,solstag/redmatrix,friendica/red,unary/redmatrix,kenrestivo/hubzilla,zotlabs/hubzilla,HaakonME/redmatrix,HaakonME/hubzilla,wave72/hubzilla-dev,dawnbreak/redmatrix,dawnbreak/redmatrix,habeascodice/redmatrix,phellmes/hubzilla,mrjive/hubzilla,anaqreon/hubzilla,dawnbreak/redmatrix,zzottel/hubzilla,HaakonME/redmatrix,phellmes/hubzilla,mjfriaza/hubzilla,mrjive/hubzilla,friendica/red,beardyunixer/federated-global-directory,redmatrix/redmatrix,git-marijus/hubzilla,sasiflo/hubzilla,waitman/red,sasiflo/hubzilla,redmatrix/redmatrix,phellmes/hubzilla,encyclomundi/hubzilla,zotlabs/hubzilla,HaakonME/redmatrix,phellmes/hubzilla,mjfriaza/hubzilla,zotlabs/hubzilla,git-marijus/hubzilla,beardyunixer/federated-global-directory,phellmes/hubzilla,redmatrix/hubzilla,solstag/redmatrix,anaqreon/redmatrix,mrjive/hubzilla,anaqreon/hubzilla,dawnbreak/redmatrix,anaqreon/hubzilla,beardyunixer/redmatrix,phellmes/hubzilla,encyclomundi/hubzilla,dawnbreak/hubzilla,beardyunixer/redmatrix,redmatrix/redmatrix,unary/redmatrix,beardyunixer/redmatrix,kenrestivo/hubzilla,kenrestivo/hubzilla,HaakonME/redmatrix,beardyunixer/redmatrix,HaakonME/hubzilla,sasiflo/hubzilla,beardyunixer/federated-global-directory,anaqreon/redmatrix,beardyunixer/federated-global-directory,HaakonME/hubzilla,redmatrix/redmatrix,redmatrix/redmatrix,mjfriaza/hubzilla,mrjive/hubzilla,zzottel/hubzilla,solstag/redmatrix,encyclomundi/hubzilla,zzottel/hubzilla,habeascodice/redmatrix,sasiflo/hubzilla,HaakonME/hubzilla,anaqreon/redmatrix,habeascodice/redmatrix,sasiflo/hubzilla,HaakonME/hubzilla,unary/redmatrix,mjfriaza/hubzilla,dawnbreak/hubzilla,friendica/red,redmatrix/hubzilla,redmatrix/hubzilla,redmatrix/hubzilla,HaakonME/redmatrix,zotlabs/hubzilla,git-marijus/hubzilla,wave72/hubzilla-dev,waitman/red,solstag/redmatrix,kenrestivo/hubzilla,dawnbreak/redmatrix,anaqreon/redmatrix,unary/redmatrix,zotlabs/hubzilla,HaakonME/hubzilla,git-marijus/hubzilla,HaakonME/redmatrix,anaqreon/hubzilla,git-marijus/hubzilla,encyclomundi/hubzilla,anaqreon/hubzilla,zzottel/hubzilla,HaakonME/redmatrix,friendica/red,beardyunixer/federated-global-directory,zzottel/hubzilla