There are two ways you can do this.
You can try contour integration, in which you would closely follow the steps for a rectangular contour detailed here, but with higher order poles.
Or, the beta function method you have been hinted for. To do that, let me first establish $a=1+it$ because it's easier to write. The integral becomes
$$\int_{-\infty}^{\infty} \frac{e^{ax}}{(1+e^x)^2} dx = \int_{-\infty}^{\infty} \frac{\left(e^{x}\right)^a}{(1+e^x)^2} dx$$
Enforce the substitution $$u=e^x$$
$$\frac{du}{dx}=e^x,\quad \frac{dx}{du}=\frac1{e^x},\quad dx=\frac{du}{e^x}=\frac{du}{u}$$
The bounds transform as follows. Lower one is $e^{-\infty}=0$, and upper one is $e^\infty=\infty$.
(More formally, the differential manipulation can be justified with nonstandard analysis and the directly plugging in infinity should instead be done with a limit, but you get what I mean since this is pretty standard substitution i hope?)
Using this substitution yields
$$\int_0^\infty\frac{u^a}{(1+u)^2}\cdot\frac{du}{u} = \int_{0}^{\infty} \frac{u^{a-1}}{(1+u)^2} du = \int_{0}^{\infty} \frac{u^{(1+it)-1}}{(1+u)^2} du$$
Since the beta function is given as $$\operatorname{B}(x,y)=\int_{0}^{\infty}\frac{t^{x-1}}{(1+t)^{x+y}}dt=\frac{\Gamma(x)\,\Gamma(y)}{\Gamma(x+y)}$$
we have $$x = 1+it,\quad y=1-it$$
Our integral now becomes $$\int_{0}^{\infty} \frac{u^{(1+it)-1}}{(1+u)^{(1+it)+(1-it)}} du = \text{B}(1+it, 1-it) = \frac{\Gamma(1+it)\,\Gamma(1-it)}{\Gamma(2)}$$
This is just $$\Gamma(1+it)\,\Gamma(1-it)$$
I believe you can take it here on your own. Additional hints below ig.
Use the property that $\Gamma(1+x) = x\,\Gamma(x)$.
Apply it on $\Gamma(1+it)$ and then use your second hint, which is Euler's Reflection Formula. Manipulate it and solve for the Gamma duo, then plug your result in. It should simplify down to a hyperbolic function (this way you get rid of imaginary numbers).