The requested URL was rejected. Please consult with your administrator


 
Thread Tools Search this Thread
Special Forums IP Networking The requested URL was rejected. Please consult with your administrator
# 1  
Old 07-16-2017
The requested URL was rejected. Please consult with your administrator

Ggod evening.
I need your help please, in a Production system there is a process that download a xls file from an URL which is IMF(International Monetary Fund) and afterwards to be loaded into a databse table.
When testing conectivity from a unix server to IMF seems to work but when editing it yields an error:

Code:
wget http://www.imf.org/external/np/fin/rates/rms_five_pt.cfm

Output repsonding OK:
Connecting to IMF -- International Monetary Fund Home Page[23.14.80.171]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 188 [text/html]

but it is the problem when editing:

Code:
more rms_five_pt.cfm.18
<html><head><title>Request Rejected</title></head><body>The requested URL was rejected. Please consult with your administrator.<br><
br>Your support ID is: 3489631159782436117</body></html>

i dint know how to adress this problem if it has something to do with a network issue like firewall or any other restriction or has something to do a IMF problem or website problem etc.

as far as i know code has not been changed and i dont where to scalate this problem.

I would appreciate your help in advanced.
# 2  
Old 07-17-2017
Hi.

I used wget and got the same message. However, with curl, I got:
Code:
<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="http://www.imf.org/redirect/?URL=$V&amp;404;http://prdwww-legacy-ext.imf.org:80/external/np/fin/rates/rms_five_pt.cfm">here</a></body>

Then playing with links2 http://www.imf.org/external/np/fin/r...ms_five_pt.cfm, I was able to obtain a file, rms_five.xls:
Code:
SDRs per Currency unit and Currency units per SDR (1)
last five days
SDRs per Currency unit (2)

Currency        July 17, 2017   July 14, 2017   July 13, 2017   July 12, 2017   July 11, 2017
Chinese Yuan            0.1060520000    0.1061510000    0.1059300000    0.1059710000
Euro            0.8209440000    0.8217710000    0.8233320000    0.8218750000
Japanese Yen            0.0063363900    0.0063595900    0.0063376200    0.0063113200
...

On a sysem like:
Code:
OS, ker|rel, machine: Linux, 3.16.0-4-amd64, x86_64
Distribution        : Debian 8.8 (jessie) 
wget GNU Wget 1.16 built on linux-gnu.
curl 7.38.0 (x86_64-pc-linux-gnu) libcurl/7.38.0 OpenSSL/1.0.1t zlib/1.2.8 libidn/1.29 libssh2/1.4.3 librtmp/2.3
links2 - ( /usr/bin/links2, 2014-11-08 )

Best wishes ... cheers, drl
This User Gave Thanks to drl For This Post:
# 3  
Old 07-17-2017
Thanks for your help but i have a couple of questions.

1. you test the url using 3 commands wget,curl2 and links2 and the only one that worked out was links2 command right ?

2- the wget comand used to work perfectly before july 1sth 2017 in an Unix system no linux (im not sure iF is HPUX)

3. so to draw a conclusion where the problem arises since the wget command is failing from july 1sth.

Thanks for your help in advanced
# 4  
Old 07-18-2017
Looks like that file / object has been moved / redirected?
# 5  
Old 07-18-2017
so you mean the problem comes from IMF itself ?

thanks for your hrlp in advanced

---------- Post updated at 07:50 AM ---------- Previous update was at 05:59 AM ----------

The OS is SunOS 5.10 Generic_144488-01 sun4u sparc SUNW,SP
# 6  
Old 07-18-2017
Hi.

The steps in my reply were 1) to make sure I got the same response as you, 2) to try a different download mechanism to see if it was different, and 3) to try a text-mode browser to see if it was able to figure out the URL.

So looking at the results, 1) I was able to verify your error, 2) I saw as RudiC pointed out that the file had apparently been moved at IMF and it showed a re-direct URL, 3)I noted the links2 browser was able to follow the re-direct, but it required some manual interaction.

I don't know anything about finances or the IMF, but I thought that the fiscal year rolled over at July 01, the date at which you seemed to start having trouble.

It's possible that wget and/or curl might have the ability to follow a re-direct, but if so, then they are not set to do that by default on my machine.

In poking around at the IMF, I was able to see lots of links at IMF Data , and some of them pointed to to places like: http://www.imf.org/external/np/sta/c...015/042915.pdf

You may need to seek advice from IMF folks, and/or look around the IMF web-pages to see if the data in which you are interested can be found in some place other than the URL to which you usually use, in the manner you usually use.

Best wishes ... cheers, drl

Last edited by drl; 07-19-2017 at 12:56 PM.. Reason: Correct minor grammar errors.
# 7  
Old 07-19-2017
Ok thanks you very much for your help, yuo wre realley helpful to me.

In some linux and unix machines instalations the links2 command was not found. it means it needed to be installed?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Registration User Name Rejected

Unix Admin Registration process refused two user names. I may have already registered here and it's kicking me out because of email address but giving me username msg. What's the solution to this? Thanks (0 Replies)
Discussion started by: Unregistered
0 Replies

2. Shell Programming and Scripting

Reading URL using Mechanize and dump all the contents of the URL to a file

Hello, Am very new to perl , please help me here !! I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file. below is the script which i have written so far , #!/usr/bin/perl use LWP::UserAgent; use... (2 Replies)
Discussion started by: scott_cog
2 Replies

3. Post Here to Contact Site Administrators and Moderators

I want to consult about 4th of Forum Rules

Hi, Admin, because my English is very poor, So I don't understand very well about 4th of Forum Rules, that is “Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post”. My question is: if I created a new thread, and some people reply... (3 Replies)
Discussion started by: weichanghe2000
3 Replies

4. UNIX for Dummies Questions & Answers

Awk: print all URL addresses between iframe tags without repeating an already printed URL

Here is what I have so far: find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}' Here is an example content of a PHP or HTM(HTML) file: <iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Discussion started by: striker4o
18 Replies

5. UNIX for Dummies Questions & Answers

Consult

Hi Gurus of Unix, I am Newby in Unix I Want to know what are the best Tool´s that Unix has, (like openoffice, antivurus, etc) Probably you can tell a link where I can find the best tool to use with my unix. I has an OpenSolaris Machine Regards (1 Reply)
Discussion started by: andresguillen
1 Replies

6. Web Development

Regex to rewrite URL to another URL based on HTTP_HOST?

I am trying to find a way to test some code, but I need to rewrite a specific URL only from a specific HTTP_HOST The call goes out to http://SUB.DOMAIN.COM/showAssignment/7bde10b45efdd7a97629ef2fe01f7303/jsmodule/Nevow.Athena The ID in the middle is always random due to the cookie. I... (5 Replies)
Discussion started by: EXT3FSCK
5 Replies

7. Forum Support Area for Unregistered Users & Account Problems

user names being rejected during registration

To Whom It May Concern, I've tried registering, and am unable to do so. The message being returned is that my name choices are being rejected for not meeting some administrator criteria, which is not discernible from the message returned by the board software. The password I chose was all... (1 Reply)
Discussion started by: username_in_use
1 Replies

8. What is on Your Mind?

Unix Administrator and Linux Administrator transition

Hello Unix Experts, I'm going to be graduating with a CIS (Computer Information Systems) degree in the coming year. I have been offered an internship with a job title of Unix Administrator under a well known company. I understand that Unix is used for high-end servers in many large... (1 Reply)
Discussion started by: brentmd24
1 Replies

9. Shell Programming and Scripting

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

10. UNIX for Advanced & Expert Users

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies
Login or Register to Ask a Question