Jump to content

502 error problem


Champak
 Share

Recommended Posts

I have this app to crawl my site, and it has been working fine. All of a sudden it stopped working. I checked my host and they said they have no answers and made no changes.

I was originally using:

$bixcontent = BinaryToString(InetRead($rSMapURL,1), 4)

to get the information that I wanted, but all I was getting error 13 from inetread and I couldn't figure out what that was.

So I tried:

$RequestURL = $rSMapURL;
    Global $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") ;
    $oHTTP.Open("GET", $RequestURL, False)
    $oHTTP.Send()
    ConsoleWrite("status: " & $oHTTP.status)

Which showed me a 502. Going straight to the page in question normally gives me no issues.

Any thoughts as to why I would get 502 through my app?

 

 

Link to comment
Share on other sites

Found the problem. I don't understand why it would have caused the issue, so hopefully someone can explain it to me. The problem was the htaccess file. I have only made two changes on that file in the past two months, and that was to only allow IP from where I was at the time. But the IP address is the same if from me directly browsing or through the app so that doesn't make sense why the app wasn't going through but I could access direct. And my fix was simply to change the name, run the app, and change the name back. 

Any theories?

Link to comment
Share on other sites

  • 3 weeks later...

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...