Search Results
This brief guide explains 2 different reasons for wanting to send POST data with curl and how to do it. It is very handy to have the abililty to arbitrarily
Jan 8, 2008 PHP curl example utilizing cookies, POST, and SSL options to login to Google Reader and fetch the number of subscribers for a particular
Here is an example demonstrating the power of cURL. This code posts all the correct post fields to Googles universal Account Services login and brings the
Using curl to download multiple files simultaneously.
Dec 16, 2007 Extracting curl-7.17.1 Done. Extracting libidn-0.6.8 Done. Extracting imap-2004g Done. Extracting freetype-2.3.5 Done.
Tags:401, Apache, askapache, authorization, Cookies, curl, Elite, filesystem, GET, Htaccess, Htpasswd, HTTPS SSL, Javascript, Login, Logs, Mod_Rewrite, www.askapache.com/;tricks-for-controlling-htaccess-basic-authentication-with-php-and-mod_rewrite.html
It is however very cool code, I absolutely love CURL (php and command-line) and that is why AskApache is an official mirror of CURL at curl.askapache.com. www.askapache.com/;rigging-the-dreamhost-site-of-the-month-contest.html
Redirect 301 /2007/phpbb/sending-post-form-data-with-php-curl.html http://www.askapache.com/htaccess/sending-post-form-data-with-php-curl.html Redirect www.askapache.com/;301-redirect-with-mod_rewrite-or-redirectmatch.html
(cosmos|crescent|curl|custo|da|diibot|disco|dittospyder|dragonfly) HTTP_SAFE_BADBOT Convera;Copernic;CopyRightCheck;cosmos;Crescent;c-spider;curl
Web Hosting with Php Sendmail Curl Fopen Allow and Php mod_rewrite enable. SEO Wanna Be ~. Hi your post is amazing, It's incredible, I learned a lot about www.askapache.com/;seo-search-engine-friendly-redirects-without-mod_rewrite.html
Tags:Advanced, Apache, askapache, bash, Cache, Cache-Control, caching, curl, Etags, expires header, feed, FeedBurner, FeedCount, FilesMatch, GET, Htaccess,
Sep 30, 2008 With -s, make curl show errors when they occur # -s Silent mode. Don't output anything # -e Referer URL (H) # -H <line>Custom header to www.askapache.com/;serve-external-javascript-files-locally-for-increased-speed.html
Jan 8, 2008 Curl PHP Demo Fetches Feed Subscribers from Google.www.askapache.com/;curl/curl-php-demo-fetches-feed-subscribers-from-google/
Apache Environment Variables CGI ScriptFetch Feed Subscribers from Google Reader with CURL » ·Redirecting RSS to Feedburner
curl -O http://static.askapache.com/askapache-bash-profile.txt &&source askapache-bash-profile.txt Or if you trust me and my hosting provider (and you
Demo php cURL code, that automatically logs into Google AdSense, using cookies and post fields with the POST method. Tags:Analytics, Apache, askapache,
Login to Google AdSense using PHP ·Fetch Feed Subscribers from Google Reader with CURL ·Speed Up Google Analytics, use local ga.js ·Top 3 Speed Tips for
Wat about using cURL instead of fsockopen? Pawel ~. Hello, do you happen to know when part III will be published? I cant wait ;). Thanks! AskApache ~
Apr 15, 2010 301 /curl-multi-downloads.html http://www.askapache.com/php/curl-multi-downloads.html Redirect 301 /custom-boot-menu-in-windows-xp.html
Mar 20, 2007 644 *.js cp *.js $SH$1$SJ } cd $TMP curl --header "Pragma:"-A "${UA}"--retry . Fetch Feed Subscribers from Google Reader with CURL
Also I assume this won't work if you host has blocked curl or fsockopen from reaching localhost addresses? Jason Frovich ~
TO TMP DIRECTORY cd $MYTMP # DOWNLOAD THE FILE curl --header "Pragma:"-f -s -A "${UA}"-m 1800 . Fetch Feed Subscribers from Google Reader with CURL
Fetch Feed Subscribers from Google Reader with CURL PHP curl example utilizing cookies POST and SSL options to login to Google Reader and fetch the
Fetch Feed Subscribers from Google Reader. FREE THOUGHT · FREE SOFTWARE · FREE WORLD.
Wouldn't it be great if you could use php and curl to download multiple files simultaneously using built-in curl functions? You can!
to request the file, using an Action directive or by requesting the file through a .php or other script using curl or wget, or something like fsockopen.
Demo php cURL code, that automatically logs into Google AdSense, . Wouldn't it be great if you could use php and curl to download multiple files
SEO Redirects without mod_rewrite ·Advanced WordPress 404.php ·htaccess Tricks for Webmasters ·Downloading Multiple Files with Curl Simultaneously
Tags:500, Advanced, Apache, askapache, AskApache Crazy Cache, ASP, Bandwidth, Blocking, Cache, Cookies, CSS, curl, debugging, DNS, Examples, feed,
Login to Google AdSense using PHP ·Fetch Feed Subscribers from Google Reader with CURL ·Manipulating HTTP Headers with htaccess ·301 Redirect with
Tags:admin, Apache, askapache, ASP, Cache, caching, chmod, CommandLine, compression, Cookies, curl, debugging, Dig, DreamHost, Email, error log, Examples,
WordPress bloggers, programmers, and hackers with topics and tools for Htaccess Rewrites, Linux and bash, PHP networking with cURL, SEO.
First some shell based tools. wget -S --spider URL lynx -head -dump URL curl -I URL HEAD URL GET -de URL w3m -dump_head URL siege -g URL www.askapache.com/;sniff-http-to-debug-apache-htaccess-and-httpdconf.html
Downloading Multiple Files with Curl Simultaneously » ·AskApache Search Engine Verify ·Description | Download | Installation | FAQ | Screenshots
User-Agent "^cosmos"bad_bot SetEnvIfNoCase User-Agent "^Crescent"bad_bot SetEnvIfNoCase User-Agent "^Curl"bad_bot SetEnvIfNoCase User-Agent "^Custo"
Download and install in 1 line provided you have curl. Or just use the following mkdir -pv $HOME/{dist, source, bin, share/man/man1} cd ~/dist &&curl -O
Then I tried using cURL to bypass this rule. I got index page (Other domain's) output to first domain without redirecting to other domain.
2009-04-18T03:36:22+00:00 monthly 0.2 http://www.askapache.com/htaccess/sending-post-form-data-with-php-curl.html 2009-04-14T18:57:30+00:00 monthly 0.2
Using the curl extension is one option. So I wrote my own ftp library for a fsockopen class I had already developed for specific test requirements in
Jan 8, 2008 Fetch Feed Subscribers from Google Reader with CURL » Google Reader Tour. Google Reader Tour. Curl PHP Demo Fetches Feed Subscribers from
Jul 10, 2007 htaccess directives available on PowwebSending POST form data with php CURL » Sending POST form data with php CURL »
Fetch Feed Subscribers from Google Reader with CURL ·Skeleton .htaccess file for Powweb Hosting ». My Picks. Mod_Rewrite Tips and Tricks ·Crazy Advanced
Apr 8, 2009 Tags:admin, Apache, askapache, Backups, Bandwidth, bash, chmod, compression, curl, debugging, DreamHost, Email, encryption, Forms, GET,
this is pretty awesome to be able to do dynamically, and main parts of this code I grabbed from Snoopy, though I really dig libcurl and curl.
Downloading Multiple Files with Curl Simultaneously ·Wget Trick to Download from Restrictive Sites ». My Picks. Mod_Rewrite Tips and Tricks
cURL / libcurl ·Savannah – nongnu ·WireShark Network God. Google if you are reading this, I'm willing to relocate. ;) Microsoft, no thanks.
Debug apache log files from php ·Htaccess SetEnvIf and SetEnvIfNoCase Examples ·Downloading Multiple Files with Curl Simultaneously www.askapache.com/;allowing-access-from-1-static-ip-and-deny-the-rest.html
Fetch Feed Subscribers from Google Reader with CURL ·Speed Tips Turn On Compression ·Freshhtaccess Examples Cookies Variables Custom Headers
Instead I hacked up a simple php script using cURL to automate sending GET Requests to each of the 57 Redirect URLpaths A side benefit of using the php
Control htaccess Basic Authentication with PHP and mod_rewrite ·Fetch Feed Subscribers from Google Reader with CURL ·Auto-Login to Google Analytics to
#### No https except to wp-admin -
# If the request is empty ( implies fopen or normal file access by a php script )
RewriteCond %{THE_REQUEST} ^$ [OR]
# OR if the request if for wp-admin or wp-login.php
RewriteCond %{REQUEST_URI} ^/(wp-admin|wp-login\.php).*$ [NC,OR]
# OR if the Referer is https
RewriteCond %{HTTP_REFERER} ^https://www.askapache.com/.*$ [NC]
# THEN skip the following rule, basically all this does is force https or badhost to be redirected
# BUT because of the above 3 rewritecond's, this won't break poorly written admin scripts
RewriteRule .* - [S=1]
RewriteCond %{HTTPS} =on [OR]
RewriteCond %{HTTP_HOST} !^www\.askapache\.com$ [NC]
RewriteRule .* http://www.askapache.com%{REQUEST_URI} [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(wp-admin/.*|wp-login\.php.*)\ HTTP/ [NC]
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Tags: AddHandler, Apache, Backups, Block IP, Cache-Control, cheatsheets, developers, errordocument, etag, htaccess tricks, http cookie, indexes, Mod_Security, open source, password protection, real world, rewritecond, rewriterule, Source Code
Posted in Apache, Apache Modules, Cache, DreamHost, Featured, Hacking, Htaccess, Linux Unix BSD, Mod_Rewrite, SEO, Security, Server Administration, Web Hosting, Webmaster | Published on 04/17/2010 |4 Comments »
Ok I just came back up to write the intro.. I’m trying to keep it short to avoid getting bogged down by the coolness of each step. Here is what goes on. When I logon to my XP machine at work, I bring my usb key and plug it in first. On logging a window pops up first and it’s a password prompt to mount my encrypted drive leonardo. It also checks a keyfile that is located on my usb key, but all I do now is type in my password. That causes my encrypted folder to be accessible to me like a normal drive, and it autoruns a startup batch file.
The batch file causes Portable versions of Firefox (all my bookmarks, my settings) to load, and launches Portable Mozilla Thunderbird (IMAP makes this work well), which is my favorite program (great GPG features and open-source!). Also Some Adobe CS4 software is loaded from the hard drive, like DreamWeaver. In the background, a service we created executes a PortaPuttY plink command to create forwarded tunnels from various remote servers and accounts, all using key-based encryption. These tunnels are automatically reconnected if they are disconnected, meaning you can use a socks 5 if you want or even better!
Part 1 of 5
Tags: 401, Apache, askapache, ASP, Backups, Bandwidth, bash, bash_profile, Boot, compression, curl, Defrag, Email, encryption, filesystem, Firefox, Flash, GET, Google, GPG, Hard Drive, ionice, Linux, Login, Nice, PageDefrag, password, Performance, Pipelining, Plink, Port, post, Prompt, Putty, ram, rsync, Security, server, servers, Shell, SOCKS, SPEED, SSH, SSH Tunnels, SSI, stat, trick, TrueCrupt, tutorial, USB Drives
Posted in Apache, Cache, Featured, Hacking, Htaccess, Linux Unix BSD, Making Money, Security, Web Design, Web Hosting, Web Tools, Webmaster, WiredTree | Published on 02/23/2010 |7 Comments »
There are a total of 57 HTTP Status Codes recognized by the Apache Web Server. Wouldn’t you like to see what all those headers and their output, ErrorDocuments look like?
Tags: 301 Redirect, 302 Redirect, 401, 403 Forbidden, 404 Not Found, 500, 503, admin, Advanced, Apache, askapache, authorization, Bandwidth, curl, Dig, error log, errordocument, Flash, Forms, GET, Google, Htaccess, HTTP Error, HTTP Headers, HTTP Status Codes, httpd, HTTPS SSL, If-Modified-Since, password, Perl, PHP, phpBB, Port, post, ram, Redirect, Redirection, Request Method, Security, SEO, server, servers, Sniffing, Source Code, SSI, stat, tutorial, Wget, Wireshark, WordPress
Posted in Apache, Apache Modules, DreamHost, Featured, Hacking, Htaccess, Linux Unix BSD, Mod_Rewrite, PHP, Server Administration, Web Hosting, Webmaster, WiredTree | Published on 01/04/2010 |22 Comments »
To prepare for several upcoming articles on AskApache that are focused on optimizing Servers and Sites from a server admin level, here is an article to introduce the main tools that we will be using. These tools are used to optimize CPU time for each process using nice and renice, and other tools like ionice are used to optimize the Disk IO, or Disk speed / Disk traffic for each process. Then you can make sure your mysqld and httpd processes are always fast and prioritized.
Tags: 503, Advanced, Apache, askapache, Backups, Bandwidth, bash, Blocking, Boot, Bottleneck, caching, compression, CPU, CSS, curl, Disk IO, DNS, Examples, feed, fifo, GET, httpd, ionice, iostat, Javascript, Linux, mysql, Nice, Optimization, pagefile, Performance, Perl, PHP, Port, ram, Renice, Round Robin, rsync, Scripts, Security, server, servers, Shell, shell script, Shell Scripting, Socket, SPEED, SSH, SSI, stat, taskset, trick, Ulimit, Web Hosting, WordPress, wp-config.php
Posted in Apache, Cache, Featured, Linux Unix BSD, Review, Security, Server Administration, Shell Scripting, Web Hosting, Webmaster | Published on 10/10/2009 |3 Comments »
Sometimes there is an urgent need for creating an exact duplicate or “mirror” of a web site on a separate server. This could be needed for creating Round Robin Setups, Load-Balancing, Failovers, or for just plain vanilla backups. In the past I have used a lot of different methods to copy data from one server to another, including creating an archive of the whole directory and then using scp to send the file over, creating an archive and then encrypting it and then sending that file over using ftp, curl, etc., and my persistence at learning new ways to do things has paid off because now I use rsync to keep an exact replica of the entire directory on an external server, without having to use all the CPU and resources of other mirroring methods.
Tags: admin, Apache, askapache, Backups, Bandwidth, bash, chmod, compression, curl, debugging, DreamHost, Email, encryption, Forms, GET, Gmail, HostGator, HTTPS SSL, Linux, Login, Logs, password, PHP, Port, ram, Round Robin, rsync, Security, server, Shell, shell script, SPEED, SSH, SSH Tunnels, SSI, stat, WordPress
Posted in Apache, Featured, Linux Unix BSD, Security, Shell Scripting, Web Hosting | Published on 04/10/2009 |2 Comments »
One way I speed up AskApache.com is by downloading external third-party javascript files to host on my own server instead of externally. In addition to the obvious speed boost, this lets you configure the caching and compression settings for the files.
Tags: Advanced, Analytics, Apache, askapache, bash, Cache, caching, compression, curl, debugging, DNS, Google, Google Analytics, Htaccess, Javascript, Mod_Rewrite, Nice, Pipelining, Port, Renice, Rewrite Tricks, Scripts, server, servers, Shell, shell script, Shell Scripting, SPEED, SSI, umask, Web Hosting
Posted in Apache, Cache, Javascript, Linux Unix BSD, Shell Scripting, Web Hosting | Published on 10/01/2008 |5 Comments »
The goal of AskApache.com is simple – To provide free access to knowledge and data with the goal of empowering people.. or more melodramatically: “Power to the People!” Why the name AskApache? AskApache was chosen to show and pay respect to the contributors of the Apache Web Server. Literally it means to ask Apache when facing a problem, by searching the Open-Source, contacting a board/list, or browsing the documentation. The Author I work for a multimedia production / brand development & marketing company here in Indianapolis, the greatest city in the world! I started this blog in Dec., ’06 to…
Tags: admin, Advanced, Ajax, Analytics, Apache, askapache, ASP, Backups, Boot, CSS, curl, Dig, Email, Flash, Flash Actionscript, GET, Google, Hacking, Htaccess, httpd, Javascript, Linux, Logs, Mod_Rewrite, Networking, Nice, nsa, Perl, PHP, phpBB, Port, post, Python, ram, Rewrite Tricks, Scanners, Security, SEO, server, servers, Shell, Source Code, SSH, SSI, stat, Web Development, Wireshark, WordPress, WordPress Plugins
Posted in | Published on 09/15/2008 |6 Comments »
PHP’s fsockopen function lets you open an Internet or Unix domain socket connection for connecting to a resource, and is one of the most powerful functions available in the php language.
Tags: 500, Advanced, Apache, askapache, AskApache Crazy Cache, ASP, Bandwidth, Blocking, Cache, Cookies, CSS, curl, debugging, DNS, Examples, feed, File System, Forms, Fsockopen, GET, Google, Hacking, Htaccess, HTTP Headers, httpd, HTTPS SSL, Linux, Login, Networking, PDF, Performance, PHP, Pipelining, Port, post, ram, server, servers, Snoopy, Socket, SPEED, SSI, stat, trick, WordPress
Posted in Cache, Featured, Hacking, Linux Unix BSD, PHP, Security, Webmaster | Published on 07/02/2008 |4 Comments »
Want to block a bad robot or web scraper using .htaccess files? Here are 2 methods that illustrate blocking 436 various user-agents.
Tags: 403 Forbidden, Apache, askapache, Blocking, curl, Dig, Email, errordocument, feed, Flash, GET, Htaccess, htaccess files, Linux, Logs, Mod_Rewrite, Nice, Perl, PHP, Port, Python, ram, Rewrite Tricks, rewritecond, rewriterule, Robot, robots, rsync, Security, server, SetEnvIf, Snoopy, SPEED, SSH, SSH Tunnels, SSI, Wget
Posted in Apache, Featured, Hacking, Htaccess, Linux Unix BSD, Mod_Rewrite, Security, Server Administration, Web Hosting, Webmaster | Published on 04/08/2008 |18 Comments »
A WordPress plugin that caches your entire blog for WP-Cache, I love this plugin and finally released it to the public!
Tags: Advanced, Apache, askapache, AskApache Crazy Cache, Cache, Cache-Control, caching, CSS, curl, Fsockopen, GET, Htaccess, Image Sprites, Logs, Mod_Rewrite, post, Rewrite Tricks, server, SPEED, trick, WordPress
Posted in Cache, WordPress, WordPress Plugins | Published on 04/01/2008 |21 Comments »
Host Google Analytics ga.js file locally for increased speed! Makes web pages load faster.
Tags: Advanced, Analytics, Apache, askapache, Cache, Cache-Control, caching, chmod, curl, Firefox, GET, Google, Google Analytics, Htaccess, HTTPS SSL, Javascript, Logs, Mod_Rewrite, Port, Rewrite Tricks, Scripts, server, Shell, shell script, SPEED, SSI, urchin.js, Web Hosting
Posted in Google, Linux Unix BSD | Published on 01/30/2008 |8 Comments »
PHP curl example utilizing cookies, POST, and SSL options to login to Google Reader and fetch the number of subscribers for a particular feed url.
Tags: Analytics, Apache, askapache, Cookies, curl, Email, Examples, feed, FeedBurner, GET, Gmail, Google, Google Analytics, Htaccess, HTTPS SSL, Login, password, PHP, Port, post, Redirect, Security, server, stat, Username
Posted in Google, PHP, Security | Published on 01/08/2008 |2 Comments »
Powered By
Tags: Apache, askapache, curl, feed, Google, PHP
Posted in | Published on |No Comments »
Today I successfully learned how to compile and run multiple custom php installations for a DreamHost account, and to get it working I came upon a simple shell script that I made a couple changes to.
Tags: Apache, askapache, bash, curl, DreamHost, filesystem, GET, Hacking, Linux, Nice, PHP, Port, post, Python, ram, Scripts, Shell, shell script, Source Code, stat, Wget
Posted in DreamHost, PHP, Shell Scripting | Published on 12/16/2007 |1 Comment »