The Daily Click ::. Forums ::. Klik Coding Help ::. Ok guys, Tim needs you ;_;
 

Post Reply  Post Oekaki 
 

Posted By Message

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
4th November, 2007 at 13:47:25 -

Send text line: "POST /jr_addhighscore.php HTTP/1.1"
Send text line: "Host: www.silvernova.co.uk"
Send text line: "Content-Length: 29"
Send Text line: ""
Send text line: "?name=pooface&time=300&zone=3"
Send text line: ""

But yeah.

Does it work when you compile it?

 
My signature is never too big!!!

Clubsoft

Administrator
Weeeeeeee

Registered
  02/12/2001
Points
  253

Acoders MemberHas Donated, Thank You!May contain nutsVIP Member360 OwnerI'm an alien!Code Monkey
4th November, 2007 at 13:49:34 -

The requests just need to look like that

To be honest, GET is probably easier to do, as POST requires you to calculate how long the data is you're sending first, with the PHP script though you'd have to use $_REQUEST["variablename"] instead of $_POST["variablename"]

If you use GET, just use the following:

Send Text Line "GET http://www.silvernova.co.uk/jr_addhighscore.php?name=pooface&time=300&zone=3 HTTP/1.0"
Send Text Line ""

Might be worth sending two blank lines and the end, some servers dont do anything with just one (due to differences with CR and LF)


If you don't want to use the GET method, you can use post, and do the following:

Send Text line "POST /jr_addhighscore.php HTTP/1.1"
Send Text Line "Host: www.silvernova.co.uk"
Send Text Line "Content-Length: " + (insert calculation here to calculate how many charactors are in your post data - 29 in this case)
Send Text Line ""
Send Text Line "?name=pooface&time=300&zone=3"
Send Text Line ""

Again, might be worth usign two blank lines intead of one to see if that makes any difference

 
.: ImageApocalyptic Coders - www.acoders.com :.

Clubsoft

Administrator
Weeeeeeee

Registered
  02/12/2001
Points
  253

Acoders MemberHas Donated, Thank You!May contain nutsVIP Member360 OwnerI'm an alien!Code Monkey
4th November, 2007 at 13:52:33 -

Oh, and make sure everything in the post data variables is url encoded when you send it, eg if its a name make sure spaces are changed to %20, and so forth all none alpha-numeric characters - should just change them to a % then the hexidecimal representation of the charactors ascii code, eg "?name=poo face" would have to be "?name=poo%20face". Alternatively, just filter out all none-alphanumeric charactors instead of having to write code to convert them to their url encoded values

Image Edited by an Administrator.

 
.: ImageApocalyptic Coders - www.acoders.com :.

LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
4th November, 2007 at 14:04:36 -

Use this as your packet:
POST jr_addhighscore.php
Host: Silvernova.co.uk
Content-Length: str$(len("?name=pooface&time=300&zone=3"))
---
?name=pooface&time=300&zone=3
---

Basically what Clubby said
--- are empty lines.

 
Service Unavailable

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
4th November, 2007 at 14:04:43 -

See my post mr clubsoft.

 
My signature is never too big!!!

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
4th November, 2007 at 15:29:33 -

I used GET and it worked like a charm

LOVE YOU GUYS ;_;

 
http://www.SilverNova.co.uk


LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
4th November, 2007 at 16:34:48 -

Btw, stop abusing the JPG format Tim! >

 
Service Unavailable

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
4th November, 2007 at 17:05:24 -

CBA to use PNG! I actually compressed that pic in paint (Vista), and it looks just as good as a png, so HMPH! >

 
http://www.SilverNova.co.uk


-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
4th November, 2007 at 17:30:39 -


Originally Posted by Timothy
CBA to use PNG! I actually compressed that pic in paint (Vista), and it almost looks just as good as a png, so HMPH! >




 
Image

Tell 'em Babs is 'ere...

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
4th November, 2007 at 18:40:13 -

Hey, I never said that

 
http://www.SilverNova.co.uk


LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
5th November, 2007 at 04:39:27 -

It's just 2 clicks!
And if you say it looks as good in JPG then you're blind!
Take a closer look.
PNG will also save you a few KB disk space.

 
Service Unavailable
   

Post Reply



 



Advertisement

Worth A Click