Sitemap

Amicuk Programming Answers

HTTP Post Requests

-0001-11-30   Views:0

Advertisement

Can someone explain how to do this? I've checked the main Java site and it's got an example, but it uses MIDP code and I've got Java 5.0. Regards JohnnyThanks for that. But HttpURLConnection has a protected constructor and I can't instantiate. What's

Can someone explain how to do this? I've checked the main Java site and it's got an example, but it uses MIDP code and I've got Java 5.0.
Regards
Johnny

The replay answer
Advertisement
Thanks for that. But HttpURLConnection has a
protected constructor and I can't instantiate. What's
the correct way of using this?
I've been able to do this by directly connecting to
the server on port 80, but that's is obviously not
the best way to do this, is it?
Can you give me some example code for this. I've been
tearing my hair out trying to find a better way that
using the Socket class.
JohnnyCreate a class extending HttpURLConnection. That class is abstract anyway.
***Annie***

Go to See the other 7 answers

Hot
HELP!!!! My Hotmail no longer works with Safari v. 5.0.6 and my Imac Leopard operating system 10.5.8.  Please help me with any suggestions on what to do.  Thank you.  I cannot find any new downloads for Safari that work with Leopard.  The newest ones [More]
Greetings, My colleague and I are having issues getting a form we created to display as designed in reader. The editable pdf displays as designed in Pro. When we open it up in reader and begin to type in a field, the text displays in an extremely sma [More]
I have a 16GB iPhone 3GS and last night it stopped loading pages. I've searched through these archives but couldn't find an official solution from Apple, which is highly disappointing. Has anyone else had this happen, and if so, how did you resolve i [More]
Help me! I would like syc. my iPad with iTunes, all syc. but the Photos on the mac aren´t on my iPad,  its didn´t scy the Photos or the preferences ? The error message come the the will be sycing the Photos. Her are many Photos.....to the problem: #h [More]
This question was posted in response to the following article: http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7417a.h tmlI am not sure I can understand what exactly is going on. Maybe solution is to change Pixel Re [More]
Hello, I need to create multiple policies for adding disclaimers. We have a default disclaimer and now two unique ones for domains that need to maintain their own. I created text recourses for all disclaimers and like to make a content filter that do [More]
Will non-stock generally be posted through a goods issue? When I was running a MB51, I was having difficulty seeing anything other than receipts. Thanks, RobDear, You can see good issue with MB51. Enter MB51, Select movement type 201 - Consumption fo [More]
My Mac Mini has been running very slowly lately. Sometimes it takes half a minute to switch between apps, and I mean simple apps like Mail and Safari and Appleworks, not Photoshop. Photoshop is a joke it runs so slow. So I've run Onyx SEVERAL times, [More]
Since I did the last software update (10.4.7, I believe), many of my applications have been crashing pretty much the moment I try to open them. Safari was the first one that I noticed - it's stopped working entirely. Firefox is fine. iTunes, fine. iC [More]
I want to transfer select music files FROM my Mac Air (OSX Ver 10.9.2) to my Iphone 5 and do not want to synch my devices. I really do not want to utilize itunes. I'm a new apple user and I am finding very simple tasks on the Mac and Apple devices ve [More]