Sunday, April 11, 2021

How to send a HTTP POST request using curl from the commandline

curl POST request with no data:

curl -X POST http://URL/example.php

curl POST request with data:

curl -d "data=foo&data2=bar" http://example.com/example.cgi

curl POST request with data, alternative way:

curl -X POST -F "name=user" -F "password=test" http://example.com/example.php

curl POST with a file:

curl -X POST -F "image=@/local_path/example.jpeg" http://example.com/uploadform.cgi

curl POST JSON data

curl -H "Content-Type: application/json" -X POST -d '{"user":"bob","pass":"123"}' http://example.com/

Monday, May 13, 2013

Does Google Adsense affect the ranking of my site

Answer: Yes, it does.

First, you site may be crawled more frequently because Google is trying to keep the Adsense ads relevant. New pages may be discovered faster.

Secondly, by placing the Adsense JavaScript on your site you are giving Google a way to collect information about your site's visitors. This includes their IP address, their browser info, referring url etc. Google can use this data to construct a more complete picture of the way your visitors use your site (bounce rate etc). This could harm you or benefit you.

By using Google Adsense ads you are also giving Google an easy way to distinguish between your ads and the rest of your content. This article explains how the location of your ads on your page may affect your ranking.

Sunday, April 14, 2013

Free user authentication/password protection system in PHP

Deadlock is a free, open source (licensed under the GNU GPL.) user authentication/password protection system written in PHP/MySQL. It uses .htpasswd and .htaccess files to protect any web directory.

Features:

  • Administration Panel
    All settings and administrative controls are in the admin panel.
  • User Panel
    Gives users the ability to change their password, email address, and any other account information
  • Admin Approval
    When this option is enabled, the administrator must approve accounts before they are able to login to the protected area.
  • User Email Verification
    Users are sent a confirmation email to the address specified and must click the link in the email to verify that the email provided is their email.
  • Multiple Authentication Types
    The administrator has the option to choose between Basic and Digest authentication.
  • Auto htpasswd generation
    Automatically generates the .htpasswd file containing the users when a new user is added.
  • Auto htaccess generation
    Automatically generates the .htaccess file when the name of the protected area is changed.
  • Templatable user panel pages
    The user panel pages are generated with a template engine, allowing you to customize the pages that the user sees by simply editing the html templates.
  • Templatable System Emails
    Customize system emails by editing the templates. Deadlock does not yet include an editor in the admin panel.
  • Web based configuration
    Configuration options can easily be modified through the administration panel.
  • Integrated Email Functionality
    Specific users can be emailed straight through the admin panel, by simply selecting a link.
  • Bulk Email all registered users
    Includes bulk email functionality allowing you to email everyone in the database.
  • Search through user list
    The user list is searchable, allowing you to find a user's account by just entering their last name, first name or username.
  • Rollover Information
    Rollover information boxes are provided throughout Deadlock which give an explanation of each feature and option.

Monday, April 8, 2013

Infogrpahic for WordPress users.

SEO tips for WordPress users:

Infographic

Tuesday, April 2, 2013

ECommerce shopping carts with support for OKPAY

OKPAY is an eWallet provider and payment processing service.

OKPAY provides software plugins or modules for the following shopping carts:

  • 3dCart
  • Acorn
  • AlegroCart
  • aMember
  • AShop V
  • HikaShop
  • Magento
  • nopCommerce
  • OpenCart
  • osCommerce
  • PrestaShop
  • TomatoCart
  • 1C-Bitrix
  • Comersus Cart
  • CubeCart
  • Ubercart
  • ViArt Shop
  • VirtueMart
  • VP-ASP
  • Wordpress - eShop
  • Simpla CMS