Well I know there are no good posts about PB and Uploading files,
but let me assure anyone, it does work, and works very well !!
Even with Binary files of course !
Dont give up, and use WireShark it will show you what you are doing wrong !
I don't use the libs posted in this thread, but I really ...
Search found 10 matches
- Thu Jul 04, 2013 5:42 pm
- Forum: Tricks 'n' Tips
- Topic: HTTP Library (Crossplatform, GET/HEAD/POST, chunked, gzip)
- Replies: 28
- Views: 24450
- Wed Jul 03, 2013 11:03 am
- Forum: Tricks 'n' Tips
- Topic: HTTP Library (Crossplatform, GET/HEAD/POST, chunked, gzip)
- Replies: 28
- Views: 24450
Re: HTTP Library (Crossplatform, GET/HEAD/POST, chunked, gzi
Compared to 4. (as in last post) with WireShark I got this from Curl
POST /upload/in HTTP/1.1
User-Agent: Curl
Host: mysite
Accept: */*
Content-Type: multipart/form-data; boundary=----------------------------b87ebc3d2679
------------------------------b87ebc3d2679
Content-Disposition: form-data ...
POST /upload/in HTTP/1.1
User-Agent: Curl
Host: mysite
Accept: */*
Content-Type: multipart/form-data; boundary=----------------------------b87ebc3d2679
------------------------------b87ebc3d2679
Content-Disposition: form-data ...
- Wed Jul 03, 2013 8:06 am
- Forum: Tricks 'n' Tips
- Topic: HTTP Library (Crossplatform, GET/HEAD/POST, chunked, gzip)
- Replies: 28
- Views: 24450
Re: HTTP Library (Crossplatform, GET/HEAD/POST, chunked, gzi
DarkPlayer
Thank you for the response, I read it about 6-7 hours ago, I have spent the best part of that time reading and making attempts to get something to work
Time for a coffee & clear my head a bit, haven't given up yet, more I can try some of my attempts have been close, lol
So I've made ...
Thank you for the response, I read it about 6-7 hours ago, I have spent the best part of that time reading and making attempts to get something to work
Time for a coffee & clear my head a bit, haven't given up yet, more I can try some of my attempts have been close, lol
So I've made ...
- Tue Jul 02, 2013 8:42 pm
- Forum: Tricks 'n' Tips
- Topic: HTTP Library (Crossplatform, GET/HEAD/POST, chunked, gzip)
- Replies: 28
- Views: 24450
Re: HTTP Library (Crossplatform, GET/HEAD/POST, chunked, gzi
Hi Guys,
Itty bit of help please
In the examples.pb
I see this example for POST but I'm a bit lost, sorry
;- SimpleHTTP_POST
Debug "-------------------"
Debug "SimpleHTTP_POST Example:"
NewList PostData.HTTPQuery_KeyValue()
AddElement(PostData())
PostData()\key = "key1"
<snip>
Now I have ...
Itty bit of help please
In the examples.pb
I see this example for POST but I'm a bit lost, sorry
;- SimpleHTTP_POST
Debug "-------------------"
Debug "SimpleHTTP_POST Example:"
NewList PostData.HTTPQuery_KeyValue()
AddElement(PostData())
PostData()\key = "key1"
<snip>
Now I have ...
- Tue Jul 02, 2013 4:39 pm
- Forum: Coding Questions
- Topic: Adapting ReceiveHTTPMemory to Proxy Server
- Replies: 4
- Views: 918
Re: Adapting ReceiveHTTPMemory to Proxy Server
Swapping these 2 lines around, I see an error, a bad request 400 is created
Connection = OpenNetworkConnection(Server, 80, #PB_Network_TCP) ;original line which works
;Connection = OpenNetworkConnection("127.0.0.1", 8580, #PB_Network_TCP) ; my change, doesn't work
it should be
11:18:14 PM 192 ...
Connection = OpenNetworkConnection(Server, 80, #PB_Network_TCP) ;original line which works
;Connection = OpenNetworkConnection("127.0.0.1", 8580, #PB_Network_TCP) ; my change, doesn't work
it should be
11:18:14 PM 192 ...
- Tue Jul 02, 2013 4:16 pm
- Forum: Coding Questions
- Topic: Adapting ReceiveHTTPMemory to Proxy Server
- Replies: 4
- Views: 918
Re: Adapting ReceiveHTTPMemory to Proxy Server
If I run my proxy server, which uses "127.0.0.1", 8580
Compile with Debugger, I see a connection through the proxy to my home server in the logs..
http://ndsxdelta.no-ip.org/Serv_res.png
6992 Bytes sent & received = matching Debug output..
EDIT so you know that code will not support a Unicode ...
Compile with Debugger, I see a connection through the proxy to my home server in the logs..
http://ndsxdelta.no-ip.org/Serv_res.png
6992 Bytes sent & received = matching Debug output..
EDIT so you know that code will not support a Unicode ...
- Tue Jul 02, 2013 3:35 pm
- Forum: Coding Questions
- Topic: Adapting ReceiveHTTPMemory to Proxy Server
- Replies: 4
- Views: 918
Re: Adapting ReceiveHTTPMemory to Proxy Server
127.0.01 ?
Does 127.0.0.1 work better
?
Does 127.0.0.1 work better
- Mon Jul 01, 2013 6:56 am
- Forum: Coding Questions
- Topic: If FileExists as Macro
- Replies: 2
- Views: 824
Re: If FileExists as Macro
Thank you very much Idle !
That steered me in the right direction !
But I had to drop the $ between my examples like this
Now I can move forward, wasted too much time on this haha
Filename$="latest.pb"
Macro FileExists(Filename)
result=FileSize(Filename)
Select result
Case -1
Debug ...
That steered me in the right direction !
But I had to drop the $ between my examples like this
Now I can move forward, wasted too much time on this haha
Filename$="latest.pb"
Macro FileExists(Filename)
result=FileSize(Filename)
Select result
Case -1
Debug ...
- Mon Jul 01, 2013 6:33 am
- Forum: Coding Questions
- Topic: If FileExists as Macro
- Replies: 2
- Views: 824
If FileExists as Macro
I am using a request if a file exists / not exists many times in my main loop,
so I thought a Macro might be the best way to got about it, to reduce code.
(Output being 0= No, 1=Yes, 2=Error)
I am missing something and have myself stuck in an endless (for "why wont this work" loop)
FileExists ...
so I thought a Macro might be the best way to got about it, to reduce code.
(Output being 0= No, 1=Yes, 2=Error)
I am missing something and have myself stuck in an endless (for "why wont this work" loop)
FileExists ...
- Thu Jun 27, 2013 4:42 am
- Forum: Coding Questions
- Topic: Get Server Response Tool
- Replies: 0
- Views: 605
Get Server Response Tool
Hi everyone,
I have been doing my reading, anyway I have found older methods, newer ones etc..
I have compiled & debugged a few things, but I feel like I am probably over complicating it !
I dare not corrupt this post by suggesting those..
A simple thing I am trying to do, Get the server response ...
I have been doing my reading, anyway I have found older methods, newer ones etc..
I have compiled & debugged a few things, but I feel like I am probably over complicating it !
I dare not corrupt this post by suggesting those..
A simple thing I am trying to do, Get the server response ...