LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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

Reply
 
Search this Thread
Old 12-12-2007, 11:55 PM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,440

Rep: Reputation: 80
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
 
Old 12-13-2007, 05:37 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 62
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.
 
Old 12-13-2007, 06:40 PM   #3
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,440

Original Poster
Rep: Reputation: 80
Quote:
Originally Posted by matthewg42 View Post
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?
 
Old 12-13-2007, 07:15 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Quote:
Originally Posted by fakie_flip View Post
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.
 
Old 12-13-2007, 07:50 PM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 62
I think the referrer string is usually just the URL of the page where you found the link, no?
 
Old 12-13-2007, 08:02 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
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.
 
Old 01-11-2008, 04:34 PM   #7
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web-page access control on embedded device simon_qwl Programming 2 02-27-2007 11:06 AM
web page database access per page or per session? b0uncer Programming 6 01-13-2007 12:09 PM
cannot access config web-page for adsl router tireseas Linux - Networking 6 03-19-2005 04:13 PM
Allow this particular web page access on port 443 ONLY lothario Linux - Software 2 01-14-2005 10:14 PM
Web page user access Cristian Negres Linux - Newbie 2 01-05-2002 12:43 PM


All times are GMT -5. The time now is 08:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration