Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: ASP's with lwp

by eXile (Priest)
on Apr 09, 2004 at 16:26 UTC ( [id://343942]=note: print w/replies, xml ) Need Help??


in reply to ASP's with lwp

Hi, hard to tell what you need from the error message you got back. I think the ASP expects a certain line to be in your request. For instance if I access a page with Internet Explorer the header looks something like:
GET / HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, applicati +on/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, a +pplication/x-shockwave-flash, */* Accept-Language: nl Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Host: www.emileaben.com Connection: Keep-Alive
when I do the same in LWP it looks like:
GET / HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Host: www.emileaben.com User-Agent: libwww-perl/5.69
You can make dumps like this with a packetsniffer (tcpdump, ethereal). My guess is you have to add/change your LWP request so it more closely resembles the Internet Explorer one. An obvious first try is to change the User-Agent header using the agent method of a LWP::UserAgent. Hope this helps.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://343942]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2024-04-23 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found