[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-573640-105":53,"doc-detail-573640-en":126},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":119,"head_meta":121,"extra_data":123,"updated_unix":125},105,"en","web-requests-web-cheatsheet-curl","WEB REQUESTS - Web Cheatsheet - cURL","","Web Requests - cURL cheatsheet compiling practical command examples for sending HTTP requests and inspecting responses. Covers basic GET and HEAD usage, verbose output, skipping TLS certificate validation, and controlling full request/response details. Includes guidance for setting headers such as User-Agent and Authorization, passing credentials via URL, sending GET parameters, submitting form data with POST, posting JSON with Content-Type, and managing cookies. Also lists API endpoints for reading, creating, updating, and deleting entries.",{"@graph":63,"@context":118},[64,80,101],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/web-requests-web-cheatsheet-curl/573640/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/web-requests-web-cheatsheet-curl/573640.png","ImageObject",442,249,{"name":88,"@type":89},"mieayamfan","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-15","2026-10-14",true,{"@type":98,"interactionType":99,"userInteractionCount":73},"InteractionCounter",{"@type":100},"ViewAction",{"@type":102,"mainEntity":103},"FAQPage",[104,110,114],{"name":105,"@type":106,"acceptedAnswer":107},"How do you send a basic GET request with cURL in this cheat sheet?","Question",{"text":108,"@type":109},"Use the basic GET request format shown as curl inlanefreight.com. Additional examples demonstrate requesting HTTPS endpoints and printing results.","Answer",{"name":111,"@type":106,"acceptedAnswer":112},"How can you set headers like User-Agent or Authorization with cURL?",{"text":113,"@type":109},"Use curl with -A to set a User-Agent string and use -H with an Authorization header for Basic auth, as illustrated in the WEB REQUESTS section.",{"name":115,"@type":106,"acceptedAnswer":116},"How do you update or delete an API entry using cURL?",{"text":117,"@type":109},"The sheet provides examples using HTTP methods: update with curl -X PUT .../api.php/city/london and delete with curl -X DELETE .../api.php/city/New_HTB_City.","https://schema.org",{"og:url":78,"og:type":120,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":122,"canonical":78},"index,follow",{"doc_id":124,"site_id":56},573640,1792022586,{"code":4,"msg":5,"data":127},{"doc_id":124,"user_id":128,"nickname":88,"user_avatar":129,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":130,"file_id":131,"file_url":132,"file_type":133,"file_size":134,"view_count":73,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":79,"language":135,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":136,"faqs":137,"seo_title":138,"seo_description":61,"update_tm":139,"read_time":73},962090893677,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","HTB ACADEMY CHEATSHEET  \nHACKTHEBOXCHEAT SHEETcURL help menu:curl -h  \n# WEB REQUESTS\n\ncURL  \nBasic GET request:curl inlanefreight.comDownload file:  \ncurl -s -0 inlanefreight.com/index.htmlSkip HTTPS (SSL)certificate validation:curl -k https://inlanefreight.comPrint full HTTP request/response details:curl inlanefreight.com -V  \nSend HEAD request (only prints response headers):curl-I https://www.inlanefreight.comPrint response headers and response body:curl -i https://www.inlanefreight.com  \nHTB ACADEMY CHEATSHEET  \nHTB ACADEMY CHEATSHEET  \nHACKTHEBOX  \nCHEATSHEETSet User-Agent header:  \n# WEB\n\nREQUESTS  \ncurl https://www.inlanefreight.com -A'Mozilla/5.0'  \nSet HTTP basic authorization credentials:curl -u admin:admin  \nhttp://\u003CSERVER_IP>:\u003CPORT>/  \nPass HTTP basic authorization credentials in the URL:curl http://admin:admin@\u003CSERVER_IP>:\u003CPORT>/Set request header:  \ncurl -H 'Authorization:Basic  \nYWRtaW46YWRtaW4='http://\u003CSERVER_IP>:\u003CPORT>/Pass GET parameters:  \ncurl 'http://\u003CSERVER_IP>:\u003CPORT>/search.php?search=le'Send POST request with POST data:  \ncurl -X POST -d 'username=admin&password=admin'http://\u003CSERVER_IP>:\u003CPORT>/  \nHTB ACADEMY CHEATSHEET  \nHTB ACADEMY CHEATSHEET  \nHACKTHEBOX  \nCHEATSHEETSet request cookies:  \n# WEB\n\nREQUESTS  \ncurl -b 'PHPSESSID=c1nsabop7vtk7kdis7bcnbadf1'http://\u003CSERVER_IP>:\u003CPORT>/Send POST request with JSON data:  \ncurl -X POST -d '{\"search\":\"london\"}'-H'Content-Type:application/json'http://\u003CSERVER_IP>:\u003CPORT>/search.phpRead entry:  \nAPls  \ncurl http://\u003CSERVER_IP>:\u003CPORT>/api.php/city/londonRead all entries:  \ncurl -s http://\u003CSERVER_IP>:\u003CPORT>/api.php/city/I jqCreate (add)entry:  \ncurl -X POST http://\u003CSERVER_IP>:\u003CPORT>/api.php/city/-d '{\"city_name\":\"HTB_City\",\"country_name\":\"HTB\"}’-H 'Content-Type:application/json'  \nHTB ACADEMY CHEATSHEET  \nHTB ACADEMY CHEATSHEET  \nHACKTHEBOX  \n# WEBCHEAT\n\nREQUESTSSHEETUpdate(modify)entry:  \ncurl -X PUT http://\u003CSERVER_IP>:\u003CPORT>/api.php/city/london -d '{\"city_name\":\"New_HTB_City\",\"country_name\":\"HTB\"}'-H'Content-Type:application/json'Delete entry:  \ncurl -X DELETE http://\u003CSERVER_IP>:\u003CPORT>/api.php/city/New_HTB_CityBrowser DevToolsShow devtools:  \n[CTRL+SHIFT+I]or [F12]Show Network tab:[CTRL+SHIFT+E]Show Console tab:[CTRL+SHIFT+K]  \nHTB ACADEMY CHEATSHEET","cbCaivhdNrW5Y0tK","https://ap.wps.com/l/cbCaivhdNrW5Y0tK","pdf",1153814,"English","# WEB REQUESTS\n## cURL Basics and Output\n## Headers, Credentials, and Parameters\n## POST and JSON Requests\n## API Operations (Read/Create/Update/Delete)\n## Browser DevTools Shortcuts","[{\"question\":\"How do you send a basic GET request with cURL in this cheat sheet?\",\"answer\":\"Use the basic GET request format shown as curl inlanefreight.com. Additional examples demonstrate requesting HTTPS endpoints and printing results.\"},{\"question\":\"How can you set headers like User-Agent or Authorization with cURL?\",\"answer\":\"Use curl with -A to set a User-Agent string and use -H with an Authorization header for Basic auth, as illustrated in the WEB REQUESTS section.\"},{\"question\":\"How do you update or delete an API entry using cURL?\",\"answer\":\"The sheet provides examples using HTTP methods: update with curl -X PUT .../api.php/city/london and delete with curl -X DELETE .../api.php/city/New_HTB_City.\"}]","WEB REQUESTS - Web Cheatsheet - cURL | PDF",1791943686]