Solved

502 Bad Gateway error when trying to download a file from my local web server

Posted on 2004-08-13
6
2,879 Views
Last Modified: 2012-05-05
This is weird.  When clicking on a link to download a file on a local web server (one on our lan) and the file resides on the web server itself, I get:
 "CGI Error  The specified CGI application misbehaved by not returning a complete set of http headers. The headers are:  (nothing listed)"
When I sniffed the packets the http code was a "502 bad gateway error"
After looking this up, it mentions things about gateway/proxy.  This server does neither of those functions, and the file I am trying to download is on the same server that IIS5.0 is running on.  Permissions to this file have not changed and it worked a week ago.  

Help!!
0
Comment
Question by:ttruka
  • 3
  • 2
6 Comments
 
LVL 16

Expert Comment

by:Sohel Rana
Comment Utility
Hi:

According to the Internet Errors and FAQs :
http://www.griffin.peachnet.edu/oit/wwwfaqs.htm#502

---------------------
502 - Bad gateway - A server (not necessarily a Web server) is acting as a gateway (or a type of routing device) to fulfill the request by the client (e.g. your Web browser) to access the requested Web page. An invalid response was received from an upstream server it accessed to fulfill the request. This usually does not mean that the upstream server is down (no response to the gateway), but rather that the upstream server and the gateway do not agree on the protocol for exchanging data. Given that Internet protocols are quite clear, it often means that one or both machines have been incorrectly or incompletely programmed.
The first thing to try when you receive this error is simply to wait a few minutes and try again.  If you are unsuccessful the second time there is nothing you can do other than to contact the person responsible for the website to let them know that you received the error.

---------------------

rsdn

0
 

Author Comment

by:ttruka
Comment Utility
I am the one responsible for the web site.  IIS 5.0, the file I am trying to download, and the web page files themselves are all on the same box.  There is no redirect at all for this link.
Confused.
0
 
LVL 10

Expert Comment

by:avidya
Comment Utility
Hi,

do you have an cgi handeling your downloads and do you have read/write rights for the directory the cgi ?

if so, try just plain html for the download and see if that works.

The past weeks there where several security patches and fixes, maybe you have installed them and the are influensing your websites behavior?
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 10

Accepted Solution

by:
avidya earned 250 total points
Comment Utility
Hi,

Would you be so kind respond to the suggestions?
0
 

Author Comment

by:ttruka
Comment Utility
Sorry!!  Somtimes I get too focused and forget to thank whoever helped.  The suggestions you provided were correct.  I did not have the correct permissions granted to the directory.  After I set that up, everything worked great!!

Sorry again!

Thanks so much for your help.

0
 
LVL 10

Expert Comment

by:avidya
Comment Utility
Hi ttruka,

No harm done, glad to be of help
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now