| View previous topic :: View next topic |
| Author |
Message |
Shirley Kidman Enthusiastic Coder
Joined: 21 Jun 2006 Posts: 30
|
Im sorry im a little lost when u refer to header, what part of my java program is the header?
Ok ill grab that one
Im just wondering where im specifying that info in my java prog at the moment
Or how i specify it.
Reply with quote
|
| |
|
|
Nicolas Murphy New Programmer
Joined: 30 Jun 2006 Posts: 12
|
Shirley Kidman, if you are using URLConnection you have to set headers on it...
Reply with quote
|
| |
|
|
Shirley Kidman Enthusiastic Coder
Joined: 21 Jun 2006 Posts: 30
|
Ok, it might have a default setting in the libraries somewhere already that was preset
Reply with quote
|
| |
|
|
Nicolas Murphy New Programmer
Joined: 30 Jun 2006 Posts: 12
|
Shirley Kidman, URLConnection.setRequestProperty can be useful...
Reply with quote
|
| |
|
|
Shirley Kidman Enthusiastic Coder
Joined: 21 Jun 2006 Posts: 30
|
But basically ill have to make that header, match the one that i receive when i browse to the page normally?
Ok
Thanks heaps Nicolas Murphy
Reply with quote
|
| |
|
|
Nicolas Murphy New Programmer
Joined: 30 Jun 2006 Posts: 12
|
Shirley Kidman, and please note that proxy-authentication headers of type Basic are base64 encoded
so they are just trivially scrambled clear text and trivial to get
Reply with quote
|
| |
|
|
Shirley Kidman Enthusiastic Coder
Joined: 21 Jun 2006 Posts: 30
| |
Nicolas Murphy New Programmer
Joined: 30 Jun 2006 Posts: 12
| |
Shirley Kidman Enthusiastic Coder
Joined: 21 Jun 2006 Posts: 30
| |
Nicolas Murphy New Programmer
Joined: 30 Jun 2006 Posts: 12
|
you take 3 bytes and create 4 bytes, just some bit shifting
just to make sure that the string is 7 bit clean
Reply with quote
|
| |
|
|
|