curl - my favourite curl uses, cheatsheet and cookbook

Curl is Like the Swiss Army Knife of Web Tools

Curl can be used to test your interactive web applications that use POST, GET, and PUT. Here are some of my all time favourite curl tricks

1) Upload A File to a PHP script

curl -F "file=@/var/tmp/log.out;filename=$aname" http://somewebsite.com/uploadfile.php

send the file contents and the filename over to your php script

2) Send JSON to a PHP script

curl -X POST -H "Content-Type: application/json" http://somewebsite.com/form.php -d '{"username":"Marcus Wong","hostname":"APPLE"}'

Comments

  1. The blog is really very well written I am really impressed all the things that make Yahoo mail famous have been well discussed here.

    ReplyDelete
  2. If you are searching for the ways to fix Yahoo mail login error then you are in luck. There are many simple tips and tricks available to fix all types of error related to Yahoo sign-in. All you need to do is just make sure your device is having sufficient internet connection and also make sure the IMAP and POP settings are correctly installed. You don't need to worry if you have forgotten your Yahoo password. Why? Because Yahoo password recovery process is quite simple and straightforward.

    ReplyDelete
  3. Are you frustrated? Anxious?' Can't sign in to Yahoo mail? 'Worry not. You can simply change the Yahoo forgotten password with ease of mind. Just select the forgotten password option available on the site and follow the onscreen instructions. Further, you will have to share your registered phone number or email to confirm your identity. Another way to fix the Yahoo login error is to contact the experts through' Yahoo live chat support. 'Solutions to all problems are available with ease of mind at Yahoo customer service.

    ReplyDelete
  4. When it comes to email technology, Yandex always seems to be one step ahead of the competition. But, create a Yandex Mail Account is still a problem. Well, I have a piece of good news for all Yandex users. And the good news is that you can Yandex Mail Account with ease of mind. One of the most important simple methods to create yandex mail account. If you have forgotten the answer to the security question then you must have access to your phone number and email id.

    Also Read:
    yandex forgot security question

    ReplyDelete
  5. To fix QuickBooks update server not responding error, you need to first configure the network connectivity in your system in a correct manner. It is possible that something is wrong with the network connectivity setting and it is causing the issue. Also, you need to check which programs are running in the background of your computer system. The unnecessary and extra load of these background program may cause this error, you can close this and then try to updating QuickBooks.

    ReplyDelete

Post a Comment

Popular posts from this blog

Microsoft Visio 2010 Premium Product Keys

Fix: The Diagnostic Service Host service failed to start due to the following error. [ solved, no kidding ]

Mercedes Benz Diesel CDI EGR Emulator Circuit Diagrams