Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't make HTTP::Lite works! GRRR!

Status
Not open for further replies.

naq2

Programmer
Aug 3, 2004
74
FR
Hi there,

I manage to solve all my today's problems. Now it is time for tomorrow's ones!

1) I can't make HTTP::Lite work. It work very fine for local pages (pages on localhost: but as soon I want to access ouside websites (I've been trying with and it no longer work.
When I check the error log file of my Apache Web Server, I got this error:
[Tue Aug 3 20:42:14 2004] go.cgi: Only http is supported by HTTP::Lite at [...]
I don't understand why this error as the protocol is HTTP.

2) It got solve while I was writing it...
I mean... everything works fine but I have an error in the log file: Can't undef active subroutine during global destruction.
Does it sound familiar to you?

Thanks again and again.
 
Could you post your code so we can take a look at what you've done? It's hard to come up with solutions when you can't see the puzzle.

- Rieekan
 
I don't mid showing my code... but it's kind of complex one, thats why! Simplified version:
Code:
do {
  $HTTPHandle = new HTTP::Lite ;

  ($rightUrl, $rpostData) = buildRequest() ;
	
  if ($rpostData) {
    $HTTPHandle->prepare_post($rpostData) ;
  }

  $request = $HTTPHandle->request($rightUrl)
    or buildVXMLError("Unable to access the requested web page: " . $rightUrl . '.') ;

  $redirectionUrl = checkHeaderForRedirections($HTTPHandle->headers_array()) ;
  $selfUrl = urlBuilding($url, $selfUrl) ;
  if ($redirectionUrl) {
    $url = urlBuilding($redirectionUrl, $url) ;
  }
} while ($redirectionUrl) ;

All the my personnal functions are doing what they are suppose to do! :)

Thanks for help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top