0
  1. Trang chủ >
  2. Công Nghệ Thông Tin >
  3. Quản trị Web >

Web Client Programming with Perl-Chapter 7: Graphical Examples with Perl/Tk- P2

Web Client Programming with Perl-Chapter 7: Graphical Examples with Perl/Tk- P1

Web Client Programming with Perl-Chapter 7: Graphical Examples with Perl/Tk- P1

... Chapter 7: Graphical Examples with Perl/Tk- P1 The Tk extension to Perl can be used to create a Graphical User Interface (GUI) to your Perl programs ... show a few examples of Tk-based web clients, which go beyond the command-line interface that we've been using so far in this book:[1]  xword, a dictionary client  track, a graphical version ... simple program that will just prompt for the word and go look it up without all that extra hassle. Anyone familiar with the xwebster client for the X Window System will find xword to be vaguely familiar,...
  • 14
  • 465
  • 0
Web Client Programming with Perl-Chapter 7: Graphical Examples with Perl/Tk- P2

Web Client Programming with Perl-Chapter 7: Graphical Examples with Perl/Tk- P2

... Chapter 7: Graphical Examples with Perl/Tk- P2 The do_search( ) function will take an optional $url argument, to give it an ... we need to delimit it from the prior text (which we insert into our text widget with the flush_text( ) function) with a few returns. Note that flush_text( ) takes the same arguments as any of ... to call our function, do_search( ), with the URL we extracted from the HTML tag. Then we insert the text for the link into the text widget, and associate it with the tag we just built. Figure...
  • 18
  • 420
  • 0
Web Client Programming with Perl-Chapter 7: Graphical Examples with Perl/Tk- P3

Web Client Programming with Perl-Chapter 7: Graphical Examples with Perl/Tk- P3

... Chapter 7: Graphical Examples with Perl/Tk- P3 Our destinations list is an almost exact copy of the list you'd see on the web page. For ease in using, we placed ... going to use a default of today for the date field. The FedEx web page expects it in the form of "DayMonthYear", and digits with only one number require a leading zero. The string returned ... letter, it would scroll to the first entry starting with that letter. Or you could put an additional entry, and search for any word starting with those characters: my $response_f = $mw->Frame;...
  • 19
  • 426
  • 0
Tài liệu Web Client Programming with Perl-Chapter 7: Graphical Examples with Perl/Tk- P4 docx

Tài liệu Web Client Programming with Perl-Chapter 7: Graphical Examples with Perl/Tk- P4 docx

... Chapter 7: Graphical Examples with Perl/Tk- P4 Check if Servers Are up: webping For the last example, we'll build a GUI interface that will allow us to check and see if several web sites ... similar to the UNIX ping command, we call it webping. This application would be useful to a web administrator who had to keep track of many different web sites, and wanted to know when one was ... Automode"); $mw->after('cancel', $id); } } And finally, webping looks like Figure 7-4. Figure 7-4. webping client 1. I say "we," but I really mean "she"...
  • 23
  • 402
  • 0
Web Client Programming with Perl-Chapter 3: Learning HTTP- P3

Web Client Programming with Perl-Chapter 3: Learning HTTP- P3

... header. Clients use this information to correctly handle the media type and format of the entity- body. A client might also use a Content-type header with the POST or PUT method. Most commonly, with ... If-Modified-Since, et al. To accommodate client- side caching of documents, the client can use the If- Modified-Since header with the GET method. When using this option, the client requests the server to ... Transfer-Encoding header with the chunked parameter. When a client is involved in a client- pull/server-push operation, it may be possible that there is no end to the entity-body. For example, a client program...
  • 27
  • 521
  • 0
Web Client Programming with Perl-Chapter 4: The Socket Library- P1

Web Client Programming with Perl-Chapter 4: The Socket Library- P1

... it's not fully compliant with the HTTP specs, the web server won't understand you! Perhaps your web client works with one web server but not another. Or maybe your web client works most of the ... and map a client& apos;s incoming request to a file handle. After a client request has been accepted, all subsequent communication with the client is referenced through the file handle with sysread( ... cease communication between the client and server, call close( ). Since this book is primarily about client programming, we'll talk about the socket calls used by clients first, followed by the...
  • 26
  • 491
  • 0
Web Client Programming with Perl-Chapter 4: The Socket Library- P2

Web Client Programming with Perl-Chapter 4: The Socket Library- P2

... Socket; # include Socket module require 'tcp.pl'; # file with Open_TCP routine require &apos ;web. pl'; # file with parseURL routine use vars qw($opt_h $opt_H $opt_r $opt_d); use ... network connection close(F); } Shell Hypertext cat With hcat, one can easily retrieve documents from remote web servers. But there are times when a client request needs to be more complex than hcat ... shcat's STDIN, and it will forward it on to the web server you specify. This allows you to do things like HTML form postings with POST, or a file upload with PUT, and selectively look at the results....
  • 26
  • 463
  • 0
Web Client Programming with Perl-Chapter 5: The LWP Library- P1

Web Client Programming with Perl-Chapter 5: The LWP Library- P1

... that are useful for client programming. The LWP Module The LWP module, in the context of web clients, performs client requests over the network. There are 10 classes in all within the LWP module, ... module describes client requests, server responses, and dates, and computes a client/ server negotiation.  The LWP module is the core of all web client programs. It allows the client to communicate ... spoken between web clients and servers. Now we'll fill in the rest of the puzzle: how your program establishes and manages the connection required for speaking HTTP. In writing web clients and...
  • 27
  • 400
  • 0
Web Client Programming with Perl-Chapter 5: The LWP Library- P2

Web Client Programming with Perl-Chapter 5: The LWP Library- P2

... In the context of web client programming, you'll usually get an HTTP::Response object from LWP::UserAgent and LWP::RobotUA. If you plan to write extensions to LWP or a web server or proxy ... Chapter 5: The LWP Library- P2 HTTP::Response Responses from a web server are described by HTTP::Response objects. If LWP has problems fulfilling ... as a scalar. $r->code([$code]) When invoked without any parameters, the code( ) method returns the object's response code. When invoked with a status code as the first parameter, code(...
  • 32
  • 439
  • 0
Web Client Programming with Perl-Chapter 6: Example LWP Programs-P1

Web Client Programming with Perl-Chapter 6: Example LWP Programs-P1

... that a client may exhibit. The examples in this chapter all use a simple command-line interface. In Chapter 7, Graphical Examples with Perl/Tk, we have some additional examples with a graphical ... features. We present three broad categories of web client programs:  Simple clients--programs that perform actions for users in real time, usually with a finite list of URLs to act upon. In this ... categories are not set in stone. It is possible to write a periodic client that also happens to be a recursive client. Or a simple client might become periodic if the document indicates that the...
  • 41
  • 469
  • 0

Xem thêm

Từ khóa: Báo cáo thực tập tại nhà thuốc tại Thành phố Hồ Chí Minh năm 2018Nghiên cứu sự biến đổi một số cytokin ở bệnh nhân xơ cứng bì hệ thốngBiện pháp quản lý hoạt động dạy hát xoan trong trường trung học cơ sở huyện lâm thao, phú thọGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitNGHIÊN CỨU CÔNG NGHỆ KẾT NỐI VÔ TUYẾN CỰ LY XA, CÔNG SUẤT THẤP LPWAN SLIDEPhối hợp giữa phòng văn hóa và thông tin với phòng giáo dục và đào tạo trong việc tuyên truyền, giáo dục, vận động xây dựng nông thôn mới huyện thanh thủy, tỉnh phú thọTrả hồ sơ điều tra bổ sung đối với các tội xâm phạm sở hữu có tính chất chiếm đoạt theo pháp luật Tố tụng hình sự Việt Nam từ thực tiễn thành phố Hồ Chí Minh (Luận văn thạc sĩ)Nghiên cứu tổng hợp các oxit hỗn hợp kích thƣớc nanomet ce 0 75 zr0 25o2 , ce 0 5 zr0 5o2 và khảo sát hoạt tính quang xúc tác của chúngĐịnh tội danh từ thực tiễn huyện Cần Giuộc, tỉnh Long An (Luận văn thạc sĩ)Tìm hiểu công cụ đánh giá hệ thống đảm bảo an toàn hệ thống thông tinThơ nôm tứ tuyệt trào phúng hồ xuân hươngThiết kế và chế tạo mô hình biến tần (inverter) cho máy điều hòa không khíTăng trưởng tín dụng hộ sản xuất nông nghiệp tại Ngân hàng Nông nghiệp và Phát triển nông thôn Việt Nam chi nhánh tỉnh Bắc Giang (Luận văn thạc sĩ)Tranh tụng tại phiên tòa hình sự sơ thẩm theo pháp luật tố tụng hình sự Việt Nam từ thực tiễn xét xử của các Tòa án quân sự Quân khu (Luận văn thạc sĩ)Giáo án Sinh học 11 bài 15: Tiêu hóa ở động vậtNguyên tắc phân hóa trách nhiệm hình sự đối với người dưới 18 tuổi phạm tội trong pháp luật hình sự Việt Nam (Luận văn thạc sĩ)Giáo án Sinh học 11 bài 14: Thực hành phát hiện hô hấp ở thực vậtGiáo án Sinh học 11 bài 14: Thực hành phát hiện hô hấp ở thực vậtHIỆU QUẢ CỦA MÔ HÌNH XỬ LÝ BÙN HOẠT TÍNH BẰNG KIỀM