|
Trivial...?
How do you do it then...? What would be the steps involved...?
Thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
HTTP is just a text protocol. All you have to do is create a Socket connection to the web server on port 80 and sent a property formatted HTTP request to it. GET and POST are equally easy to do.
But, of course, you really have to want to annoy the web server to go and write an app to do it.
Pete
Pete
Insert Sig. Here!
|
|
|
|
|
Ah...you have to use a compiled language...
I have always been under the impression you could accomplish this with JScript or Php, but I could NEVER figure out how...
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
You could use Perl or Python. For example, here's an excerpt of the Python manual showing how to send a POST request. Just change the "headers" variable to suit yor needs:
>>> import httplib, urllib
>>> params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0})
>>> headers = {"Content-type": "application/x-www-form-urlencoded",
... "Accept": "text/plain"}
>>> conn = httplib.HTTPConnection("musi-cal.mojam.com:80")
>>> conn.request("POST", "/cgi-bin/query", params, headers)
>>> response = conn.getresponse()
>>> print response.status, response.reason
200 OK
>>> data = response.read()
>>> conn.close()
The >>> and ... prompts in the line starts mean that you are supposed to type the stuff directly to a Python interpreter. Try it if you have Python installed. The variable "data" will contain the HTML returned by the server.
|
|
|
|
|
Hi,
Actually in PHP, there is a builtin function called
'escapeshellcmd' to automatically escape shell commands and pass them as plain text.
http://www.php.net/manual/en/function.escapeshellcmd.php
I think PHPMyAdmin (the PHP interface to MYsQL) has some features to disable queries with Drop etc.) Seeing that you can get how they have achieved this.
Perhaps in ASP, you may have to mimic the above functionality to deter the user from passing potentially harmful commands to the system.
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
Cool PHP is my language of choice for server side scripting, but I have yet to ocome across this function...
i'll have to check it out...
Thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hi all
OK I have posted this "bug" (flaw) before but wasnt sure what was causing it, but I have now pinned it down. Have look at the following and paste into a page.
<table width="100%" border="1">
<tr>
<td>Some Text</td>
<td width="200">Some Text</td>
</tr>
<tr>
<td colspan=2>Some Text</td>
</tr>
</table>
<br>
<table width="100%" border="1">
<tr>
<td>Some Text</td>
<td width="200">Some Text</td>
</tr>
<tr>
<td colspan=2>Some really really really really really really long boring Text to prove my point just as long as it is wider than the above right column</td>
</tr>
</table>
OK some mite say this is not a bug, but what must I do then to "render" something as simple as the above. NS 6 / Mozilla 1.1 renders this correctly IMHO.
ANy suggestions welcome
[edit] it seems the colspan'ed TD "binds" to the last TD that it is spanning, this is dumb IMO, it should "bind" to the 1st TD or infact all of them...[/edit]
"There are no stupid question's, just stupid people."
|
|
|
|
|
Didn't I tell you already there is no warrant regarding the user agent implementation ?
To get this displayed fine with IE, add this class :
<STYLE TYPE="text/css">
<!--
.TABLEFIXED { table-layout:fixed }
-->
</STYLE>
And set the class="TABLEFIXED" attribute to both table tags.
Back to real work : D-27.
|
|
|
|
|
Thank you, Thank you, Thank you! I can live with problems if there are solutions
"There are no stupid question's, just stupid people."
|
|
|
|
|
Why don't you use CSS to define the widths rather? Then the odd bug does not appear.
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Paul Watson wrote:
Why don't you use CSS to define the widths rather?
Hmm, thanx , I'll try that So CSS styles work for almost all table elements?
"There are no stupid question's, just stupid people."
|
|
|
|
|
leppie wrote:
So CSS styles work for almost all table elements?
Oh yeah fully. CSS can be applied to any element within (and including) the BODY element. You can apply CSS classes to TD, TR, BODY, TH, FORM etc. etc. etc. Absolutely any element.
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Since you recommended CSS months back I've been playing with them. Very effective!!!
"When in danger, fear, or doubt, run in circles, scream and shout!" - Lorelei and Lapis Lazuli Long
|
|
|
|
|
Paul Watson wrote:
Then the odd bug does not appear.
I tried the table using CSS to set widths but it still does that if I dont add the table-layout:fixed style. I can live with that though...the forum site I'm working on too doesnt like fixed layout at all , so I guess its back to the drawing board
"There are no stupid question's, just stupid people."
|
|
|
|
|
Hi all
What font do you consider the best for viewing webpages (generally content, not menus).
This is my preference : Tahoma, Verdana, Arial
Any one have problems with that?
"There are no stupid question's, just stupid people."
|
|
|
|
|
leppie wrote:
Any one have problems with that?
LOL. Or else what? hehe.
leppie wrote:
What font do you consider the best for viewing webpages (generally content, not menus).
font-family: Verdana, Helvetica, Arial, Sans-Serif is our choice.
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Paul Watson wrote:
Verdana
Alot of people tend to like that, personally I find the letters are too widely spaced, maybe its just me
"There are no stupid question's, just stupid people."
|
|
|
|
|
leppie wrote:
personally I find the letters are too widely spaced, maybe its just me
Maybe. Generally good spacing between letters and lines helps readability. I always have a line-height of 130% and a letter spacing of 1px on content rich sites. Also keep paragraphs no wider than 45em.
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Paul Watson wrote:
Maybe. Generally good spacing between letters and lines helps readability.
Hehe, I had justification on the page I was looking at to test the fonts, Verdana seems to look quite nice without justification.
"There are no stupid question's, just stupid people."
|
|
|
|
|
Yep, I like Verdana. Nice and clean.
People who think Times New Roman on italics looks cool really need their heads read!
Deploying a web application without understanding security is roughly equivalent to driving a car without seatbelts - down a slippery road, over a monstrous chasm, with no brakes, and the throttle jammed on full. Hacking Exposed - Web Applications. Joel Scambray & Mike Shema
|
|
|
|
|
Megan Forbes wrote:
People who think Times New Roman on italics looks cool really need their heads read!
like this? It rools man.
"There are no stupid question's, just stupid people."
|
|
|
|
|
leppie wrote:
It rools man
That's about right!
Deploying a web application without understanding security is roughly equivalent to driving a car without seatbelts - down a slippery road, over a monstrous chasm, with no brakes, and the throttle jammed on full. Hacking Exposed - Web Applications. Joel Scambray & Mike Shema
|
|
|
|
|
leppie wrote:
I had justification on the page I was looking at to test the fonts
Justification on the web is a bbbbaaddd idea. Newspapers, books etc. can do it because they have perfected it, but browsers do it terribly. So avoid.
Left align is best. Right align and centre align are also bad ideas
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
|
Deepak Kumar Vasudevan wrote:
font-family: Arial,Verdana,Helvetica,sans-serif;
Why place Arial before Verdana or Helvetica when most clients will have Ariel? It pretty much makes then redundant...
"I dont have a life, I have a program."
|
|
|
|