-
-
Save gnufied/191330 to your computer and use it in GitHub Desktop.
Revisions
-
gnufied revised this gist
Sep 22, 2009 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ c = (HttpConnection)Connector.open(url, Connector.READ_WRITE, false); c.setRequestMethod(HttpConnection.POST); c.setRequestProperty("Content-Language", "en-US"); c.setRequestProperty( "User-Agent", "Mozilla/4.0"); c.setRequestProperty( "Content-Type", "application/x-www-form-urlencoded"); c.setRequestProperty( "Content-Length", encodedData.length() ); os = c.openOutputStream(); String rStr = this.req.toString(); -
gnufied revised this gist
Sep 22, 2009 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,10 @@ c = (HttpConnection)Connector.open(url, Connector.READ_WRITE, false); c.setRequestMethod(HttpConnection.POST); c.setRequestProperty("Content-Language", "en-US"); conn.setRequestProperty( "User-Agent", "Mozilla/4.0"); conn.setRequestProperty( "Content-Type", "application/x-www-form-urlencoded"); conn.setRequestProperty( "Content-Length", encodedData.length() ); os = c.openOutputStream(); String rStr = this.req.toString(); os.write(("mobile_request=" +rStr).getBytes()); -
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ c = (HttpConnection)Connector.open(url, Connector.READ_WRITE, false); c.setRequestMethod(HttpConnection.POST); c.setRequestProperty("Content-Language", "en-US"); os = c.openOutputStream(); String rStr = this.req.toString(); os.write(("mobile_request=" +rStr).getBytes());