Skip to content
the poor coder

curl -i -X GET "https://graph.facebook.com/facebook/picture?redirect=false"

Poor Man
Published
Reading time
1 min read

When you enter a command like the one above, it means you are attempting to get information from a remote server. In this particular case, we are trying to get a picture associated with the Facebook page. To understand how this command works, let's break it down into its parts. The first part, "curl", is an application that allows you to send requests to web servers and receive responses. The "-i" flag is an option that tells curl to include the response headers in the output. The "-X GET" part is an option that tells curl to make a GET request. The rest of the command, "https://graph.facebook.com/facebook/picture?redirect=false" is the URL of the resource we are trying to retrieve. To show the result in a html div, you need to wrap it in

Text
 tags, and add a class attribute to the code tag so that you can use syntax highlighting, like so: 


curl -i -X GET "https://graph.facebook.com/facebook/picture?redirect=false"



This will allow you to use a syntax highlighter like highlight.js to make the code easier to read.

To make it easier to understand, the command will make a GET request to the URL specified, and will return the response headers in the output. The response will include the URL of the requested picture. 

Hope this helps!

Keep going

2023

how to sort an array

How to Sort an Array If you have an array and you want to order its elements in a specific way, you need to use a sorting algorithm. There are several sorting algorithms available, but two of the most commonly used are…

javascript2 min read
2023

jquery mobile or desktop

jQuery Mobile or Desktop? As a web developer, I have had some experience with both jQuery Mobile and jQuery Desktop. Both frameworks have their pros and cons, and which one to use really depends on the specific project…

javascript1 min read
2023

node.js folder structure

Node.js Folder Structure If you are new to Node.js, it can be daunting to create a folder structure that will work for your project. The structure you choose will depend on the size and complexity of your project. Here…

javascript1 min read
ESC