Re: [CGI] Instagram Photo Real Link Resolver

From Perl Pelican, 4 Years ago, written in Bash, viewed 351 times. This paste is a reply to [CGI] Instagram Photo Real Link Resolver from NAT - go back
URL https://code.nat.moe/view/4b632da1/diff Embed
Viewing differences between [CGI] Instagram Photo Real Link Resolver and Re: [CGI] Instagram Photo Real Link Resolver
#!/bin/bash
# A really simple CGI to resolve Instagram photo share link and show original photo.
# Use fcgi_param to set env QUERY_STRING. You might use fcgi.conf from php5-fpm, it will works.
# License under DO WHAT FUCK YOU WANT ( DWFYW )
echo "Content-type: text/html";echo "";
echo -n "<img src=";curl --silent $QUERY_STRING | grep .jpg | awk '{print $3}' 
| awk -F "\"" '{print $2}';echo "></img>"

Reply to "Re: [CGI] Instagram Photo Real Link Resolver"

Here you can reply to the paste above

captcha