Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-12-2007, 11:55 PM
|
#1
|
|
Senior Member
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,426
Rep:
|
wget and links2 can't access web page.
Why do none of these work?
wget http://www.blackcats-games.net/signup.php
links2 -source http://www.blackcats-games.net/signup.php
links2 -dump http://www.blackcats-games.net/signup.php
The only way I've been able to access that page is by clicking a link. I need to be able to access it from a script, so I can know when registration opens. Is there any possible way to do this? Here's what I have.
wget -P/tmp http://www.blackcats-games.net/signup.php > /tmp/logfile 2>&1; if (grep -q 'current user account limit' /tmp/signup.php); then DISPLAY=:0 xmessage 'account registration opened at blackcat'; cat /tmp/logfile; fi; rm -f /tmp/signup.php /tmp/logfile > /dev/null 2>&1
|
|
|
|
12-13-2007, 05:37 PM
|
#2
|
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
The link doesn't do anything in firefox either, if you go directly to it. Probably there is something with javascript on the page where you found the link, which adds some parameters or something like that.
|
|
|
|
12-13-2007, 06:40 PM
|
#3
|
|
Senior Member
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,426
Original Poster
Rep:
|
Quote:
Originally Posted by matthewg42
The link doesn't do anything in firefox either, if you go directly to it. Probably there is something with javascript on the page where you found the link, which adds some parameters or something like that.
|
I think the web server knows if I clicked on the link or not by the http referrer sent to it, so I want to spoof it. How can I know what http referrer is sent to the server when I click on the register link from the homepage in Firefox?
|
|
|
|
12-13-2007, 07:15 PM
|
#4
|
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,084
Rep: 
|
Quote:
Originally Posted by fakie_flip
How can I know what http referrer is sent to the server when I click on the register link from the homepage in Firefox?
|
I'd just run wireshark (used to be called ethereal) and sniff the packets - you'll get all the gorey details that way.
|
|
|
|
12-13-2007, 07:50 PM
|
#5
|
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
I think the referrer string is usually just the URL of the page where you found the link, no?
|
|
|
|
12-13-2007, 08:02 PM
|
#6
|
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,084
Rep: 
|
That's right, but I don't know enough about it to know if for example, the page is changing the referer ( http://en.wikipedia.org/wiki/Referer#Referer_hiding) or if it's using the correct URL.
|
|
|
|
01-11-2008, 04:34 PM
|
#7
|
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
http://www.blackcats-games.net/signup.php:
Quote:
|
NO, the link is NOT broken, we are closed to new signups. The page is missing intentionally!
|
That's today, any chance the same thing was happening a month ago?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:39 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|