RE: LWP gets 400, Firefox gets a 200.

"Ford, Andy" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <2D81E1BAE64EB343A9570B11C5E6927FCE0A78@hqemhopn1.home.corp.agedwards.com>
But wouldn't any javascript changes show up in the LiveHTTPheaders
output? 

I mean the javascript would rewrite the URL, and then I get the final
thing that's sent by the browser from my LiveHTTPheaders output, no?

or am I assuming too much?

The referer looks just the previous page, but I set that "by hand"
anyway, but that doesn't help.

If LiveHTTPheaders tells me:

	Referer: https://bogus.com/foo/goo.jsp

Then I say 

    my @headers = ( 'Referer' => 'https://bogus.com/foo/goo.jsp' );
    $response = $agent->get($url,@headers);

Right?


Andy Ford
314-955-6647
[email protected]
 

> -----Original Message-----
> From: Worenklein, David, GCM [mailto:[email protected]] 
> Sent: Thursday, July 06, 2006 2:50 PM
> To: Ford, Andy; [email protected]
> Subject: RE: LWP gets 400, Firefox gets a 200.
> 
> The site could use javascript to surreptitiously change your request.
> I've also seen sites that require your referrer to be set to something
> specific before they give you what you want.
> 
> 
> -----Original Message-----
> From: Ford, Andy [mailto:[email protected]] 
> Sent: Thursday, July 06, 2006 3:41 PM
> To: [email protected]
> Subject: LWP gets 400, Firefox gets a 200.
> 
> What could be different about the two processes?
> 
> -----------------------------------------
> *******************************************************************
> *
> 
> This e-mail is intended only for the addressee named above.
> As this e-mail may contain confidential or privileged information,
> if you are not the named addressee, you are not authorized
> to retain, read, copy or disseminate this message or any part of
> it.
> 
> *******************************************************************
> *
> 


-------------------------------------------------------------------------------------
A.G. Edwards & Sons' outgoing and incoming e-mails are electronically
archived and subject to review and/or disclosure to someone other 
than the recipient.

-------------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.