Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Win32::OLE VBA to Perl Translation Question about Internet Explorer

by pKai (Priest)
on Jan 17, 2007 at 15:48 UTC ( [id://595097]=note: print w/replies, xml ) Need Help??


in reply to Win32::OLE VBA to Perl Translation Question about Internet Explorer

From the docs of the Navigate method:

Headers
Optional. A value that specifies additional HTTP headers to send to the server. These headers are added to the default Microsoft Internet Explorer headers. The headers can specify things like the action required of the server, the type of data being passed to the server, or a status code. This parameter is ignored if URL is not an HTTPURL.

This probably implies, that a

Content-Type: application/x-www-form-urlencoded

has to be passed to make it a POST.

This is also noted in the the article ikegami refered to as providing a workaround, which then says that "It will work on some sites, but on many others you'll get an error."

/me scratches head

  • Comment on Re: Win32::OLE VBA to Perl Translation Question about Internet Explorer
  • Download Code

Replies are listed 'Best First'.
Re^2: Win32::OLE VBA to Perl Translation Question about Internet Explorer
by ikegami (Patriarch) on Jan 17, 2007 at 16:05 UTC

    I tried that, but that's not the determinine factor. The request is a POST request if and only if PostData is an array ref.

    It's still a good idea to include that header, however. Some sites rely on Content-Type being present. While Content-Length is set automatically, Content-Type is omitted unless specified.

Re^2: Win32::OLE VBA to Perl Translation Question about Internet Explorer
by sailortailorson (Scribe) on Jan 17, 2007 at 16:25 UTC
    Point taken. Any knowledge or even opinion about the importance and impact of any piece of the request is important to me at this point.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-12-07 23:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (50 votes). Check out past polls.