comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Posting html form data with idlNetURL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Posting html form data with idlNetURL? [message #58972] Thu, 28 February 2008 13:34 Go to next message
Kenneth Bowman is currently offline  Kenneth Bowman
Messages: 86
Registered: November 2006
Member
In article <014ede89-abf8-4a39-93e8-2029f3b0bc31@34g2000hsz.googlegroups.com>,
skapali@gmail.com wrote:

> Hi,
>
> I would like to use idlNetURL object to post a web form, setting the
> fields in the form with appropriate values. If anyone has examples of
> how to this, I'd appreciate it very much!

Can't help with this, but we were trying to use IDLnetURL to ftp a simple
PNG file. It works fine to one ftp server, put crashes IDL (seg fault
or bus error, depending on hardware) to a different ftp server. Command
line ftp works fine to both servers.

We might be doing something wrong, but we still shouldn't be able to crash
IDL. :-)

We have filed a bug report (and switched to SPAWNing a curl process).

Cheers, Ken Bowman
Re: Posting html form data with idlNetURL? [message #58983 is a reply to message #58972] Fri, 29 February 2008 11:19 Go to previous message
skapali is currently offline  skapali
Messages: 4
Registered: February 2008
Junior Member
On Feb 28, 3:45 pm, skap...@gmail.com wrote:
> Hi,
>
> I would like to use idlNetURL object to post a web form, setting the
> fields in the form with appropriate values.  If anyone has examples of
> how to this, I'd appreciate it very much!
>
> Thanks
>
> Sudha

After getting educated about the http client protocol, I figured it
out. Basically, you find the url that to which the form will be
submitted from the 'action' field of the form, and append the field
name and value pairs to the end of that url. Here's a sample if
someone's interested:

pro websample

ourl = OBJ_NEW('IDLnetURL')
content1 = ourl->get(url='http://www.google.com', /string_array);
print, 'Contents of google.com:'
print
print, content1
print

content2 = ourl->get(url='http://www.google.com/search?q=IdlnetURL', /
string_array)
print, 'Contents of searching google for idlneturl:'
print
print, content2

OBJ_DESTROY, ourl
end
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Overlaying a contour on a small image
Next Topic: Re: Simple question: promptusertext method

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:40:41 PDT 2025

Total time taken to generate the page: 0.00632 seconds