What do you want to save?
Add Code snippet
New code examples
-
Perl 2021-10-03 14:48:03
perl http request
#!/usr/bin/env perl use strict; use warnings; use Encode qw(encode_utf8); use HTTP::Request (); use JSON::MaybeXS qw(encode_json); my $url = 'https://www.example.com/api/user/123'; my $header = ['Content-Type' => 'application/json; charset=... Add solution -
Python 2021-09-30 17:01:05
unshorten url python
# This is for Py2k. For Py3k, use http.client and urllib.parse instead, and # use // instead of / for the division import httplib import urlparse def unshorten_url(url): parsed = urlparse.urlparse(url) h = httplib.HTTPConnection(parsed.netloc) ... Add solution -
Other 2021-09-13 16:11:03
https://console.developers.google.com/ and whitelist this origin for your project's client ID.
if you are testing locally, use http://localhost:8080 (or whatever port you are using) for both whitlisting at https://console.developers.google.com/apis/credentials and on your browser (not http://127.0.0.1:8080) .this worked for me Add solution -
Other 2021-09-08 11:16:01
Send discord webhook message with autohotkey
url:="webhookboturlgoesherebutwasredactedforreddit" ; use the url from Discord webhook bot postdata= ( { "content": "[Test](https://www.google.com/)", "embeds": [ { "title": "Double Test... Add solution